case 4533

This commit is contained in:
2024-06-03 23:06:32 +00:00
parent 4bd77b982b
commit 23251760b3

View File

@@ -281,25 +281,17 @@
</v-btn>
</template>
<v-list>
<!-- <v-list-item @click="subExpireAddOneWeek">
<v-list-item-icon>
<v-icon>$sockiPlus</v-icon>
</v-list-item-icon>
<v-list-item-title>One week</v-list-item-title>
</v-list-item> -->
<v-list-item @click="subExpireAddOneMonth">
<v-list-item-icon>
<v-icon>$sockiPlus</v-icon>
</v-list-item-icon>
<v-list-item-title
>One month + 7d</v-list-item-title
>
<v-list-item-title>Now + 1M + 7d</v-list-item-title>
</v-list-item>
<v-list-item @click="subExpireAddOneYear">
<v-list-item-icon>
<v-icon>$sockiPlus</v-icon>
</v-list-item-icon>
<v-list-item-title>One year + 7d</v-list-item-title>
<v-list-item-title>Now + 1Y + 7d</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
@@ -739,31 +731,28 @@ export default {
return "font-weight-black font-italic error--text";
}
},
subExpireAddOneWeek: function() {
this.obj.items[this.editItemIndex].expireDate = addToDate(
this.obj.items[this.editItemIndex].expireDate,
{
days: 7
}
);
},
subExpireAddOneMonth: function() {
this.obj.items[this.editItemIndex].expireDate = addToDate(
this.obj.items[this.editItemIndex].expireDate,
{
//8.0.16 changed to how I actually use it which is now plus additional time
//before this change I had to keep selecting now and today first
this.obj.items[this.editItemIndex].expireDate = addToDate(null, {
months: 1,
days: 7
}
);
});
// this.obj.items[this.editItemIndex].expireDate = addToDate(
// this.obj.items[this.editItemIndex].expireDate,
// {
// months: 1,
// days: 7
// }
// );
},
subExpireAddOneYear: function() {
this.obj.items[this.editItemIndex].expireDate = addToDate(
this.obj.items[this.editItemIndex].expireDate,
{
//8.0.16 changed to how I actually use it which is now plus additional time
//before this change I had to keep selecting now and today first
this.obj.items[this.editItemIndex].expireDate = addToDate(null, {
years: 1,
days: 7
}
);
});
// const now = window.$gz.locale.nowUTC8601String(this.timeZoneName);
// this.obj.items[
// this.editItemIndex