Workorderitempriority, woitemstatus and wostatus edit forms missing NEW menu option, also weird error on save about leaving unsaved

This commit is contained in:
2021-09-30 22:30:08 +00:00
parent 7b9bfdafdd
commit ea8f4287bd
5 changed files with 48 additions and 3 deletions

View File

@@ -388,6 +388,12 @@ async function clickHandler(menuItem) {
case "delete":
m.vm.remove();
break;
case "new":
m.vm.$router.push({
name: "svc-work-order-status-edit",
params: { recordid: 0 }
});
break;
case "statuslist":
m.vm.$router.push({
name: "svc-work-order-status"
@@ -445,6 +451,15 @@ function generateMenu(vm) {
});
}
if (vm.rights.change && !vm.formState.readOnly) {
menuOptions.menuItems.push({
title: "New",
icon: "$ayiPlus",
key: FORM_KEY + ":new",
vm: vm
});
}
menuOptions.menuItems.push({ divider: true, inset: false });
menuOptions.menuItems.push({
title: "WorkOrderStatusList",