This commit is contained in:
@@ -56,12 +56,12 @@ async function clickHandler(menuItem) {
|
||||
let m = window.$gz.menu.parseMenuItem(menuItem);
|
||||
if (m.owner == FORM_KEY && !m.disabled) {
|
||||
switch (m.key) {
|
||||
case "new":
|
||||
m.vm.$router.push({
|
||||
name: "cust-user",
|
||||
params: { recordid: 0 }
|
||||
});
|
||||
break;
|
||||
// case "new":
|
||||
// m.vm.$router.push({
|
||||
// name: "cust-user",
|
||||
// params: { recordid: 0 }
|
||||
// });
|
||||
// break;
|
||||
case "extensions":
|
||||
let res = await m.vm.$refs.extensions.open(
|
||||
m.vm.$refs.gzdatatable.getDataListSelection(window.$gz.type.User)
|
||||
@@ -140,15 +140,15 @@ function generateMenu(vm) {
|
||||
}
|
||||
};
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "New",
|
||||
icon: "$ayiPlus",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":new",
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
// if (vm.rights.change) {
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "New",
|
||||
// icon: "$ayiPlus",
|
||||
// surface: true,
|
||||
// key: FORM_KEY + ":new",
|
||||
// vm: vm
|
||||
// });
|
||||
// }
|
||||
|
||||
//REPORTS
|
||||
//Report not Print, print is a further option
|
||||
|
||||
Reference in New Issue
Block a user