case 4504

This commit is contained in:
2023-04-17 23:06:21 +00:00
parent 07e9051cc4
commit c611a451f3
2 changed files with 14 additions and 13 deletions

View File

@@ -1270,10 +1270,9 @@ export default {
this.obj.active = false;
this.obj.fetchedOn = null;
this.obj.fetchCode = null;
this.obj.licenseExpire = null;
this.obj.created = window.$gz.locale.nowUTC8601String();
this.obj.notificationSent = false;
this.obj.renewal=true;
this.obj.renewal = true;
// this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(
// "Copy"
// )}`;
@@ -1703,14 +1702,16 @@ function generateMenu(vm) {
});
}
if (vm.rights.change && vm.$route.params.recordid != 0) {
menuOptions.menuItems.push({
title: "Duplicate",
icon: "$sockiClone",
key: FORM_KEY + ":duplicate",
vm: vm
});
}
//Licenses should only be created from scratch or from subscription
//not from other licenses now that subscriptions have been added
// if (vm.rights.change && vm.$route.params.recordid != 0) {
// menuOptions.menuItems.push({
// title: "Duplicate",
// icon: "$sockiClone",
// key: FORM_KEY + ":duplicate",
// vm: vm
// });
// }
if (vm.rights.delete && vm.$route.params.recordid != 0) {
menuOptions.menuItems.push({
title: "Delete",

View File

@@ -1013,7 +1013,7 @@ async function clickHandler(menuItem) {
concurrency: 0,
created: window.$gz.locale.nowUTC8601String(),
active: false, //here, active means it's ready for pickup
customerId: null,
customerId: m.vm.obj.customerId,
pGroup: m.vm.obj.pGroup,
regTo: m.vm.obj.regTo,
key: null,
@@ -1219,8 +1219,8 @@ async function clickHandler(menuItem) {
break;
}
this.$router.push({
console.log(l);
m.vm.$router.push({
name: "license-edit",
params: {
recordid: 0,