This commit is contained in:
@@ -300,12 +300,16 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "stub: Last report used",
|
||||
icon: "$ayiFileAlt",
|
||||
key: FORM_KEY + ":report:STUBlastusedreportid",
|
||||
vm: vm
|
||||
});
|
||||
//get last report selected
|
||||
let lastReport = window.$gz.form.getLastReport(FORM_KEY);
|
||||
if (lastReport != null) {
|
||||
menuOptions.menuItems.push({
|
||||
title: lastReport.name,
|
||||
icon: "$ayiFileAlt",
|
||||
key: FORM_KEY + ":report:" + lastReport.id,
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
|
||||
@@ -84,30 +84,6 @@ function generateMenu(vm) {
|
||||
menuItems: []
|
||||
};
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "stub: Last report used",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:STUBlastusedreportid",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
|
||||
// //////////////////////////////////////////////////////////
|
||||
// //
|
||||
// // Ensures UI translated text is available
|
||||
// //
|
||||
// async function fetchTranslatedText(vm) {
|
||||
// await window.$gz.translation.cacheTranslations(["ReadOnly"]);
|
||||
// }
|
||||
</script>
|
||||
|
||||
@@ -132,22 +132,6 @@ function generateMenu(vm) {
|
||||
}
|
||||
};
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "stub: Last report used",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:STUBlastusedreportid",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
|
||||
|
||||
@@ -128,22 +128,6 @@ function generateMenu(vm) {
|
||||
}
|
||||
};
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "stub: Last report used",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:STUBlastusedreportid",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
|
||||
|
||||
@@ -1051,26 +1051,6 @@ function generateMenu(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// //get last report selected
|
||||
// let lastReport = window.$gz.form.getLastReport(FORM_KEY);
|
||||
// if (lastReport != null) {
|
||||
// menuOptions.menuItems.push({
|
||||
// title: lastReport.name,
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:" + lastReport.id,
|
||||
// vm: vm
|
||||
// });
|
||||
// }
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "New",
|
||||
|
||||
@@ -278,22 +278,6 @@ function generateMenu(vm) {
|
||||
vm: vm
|
||||
});
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "stub: Last report used",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:STUBlastusedreportid",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "DirectNotification",
|
||||
icon: "$ayiCommentAlt",
|
||||
|
||||
@@ -659,26 +659,6 @@ function generateMenu(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// //get last report selected
|
||||
// let lastReport = window.$gz.form.getLastReport(FORM_KEY);
|
||||
// if (lastReport != null) {
|
||||
// menuOptions.menuItems.push({
|
||||
// title: lastReport.name,
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:" + lastReport.id,
|
||||
// vm: vm
|
||||
// });
|
||||
// }
|
||||
|
||||
if (vm.rights.change) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "New",
|
||||
|
||||
@@ -172,28 +172,6 @@ function generateMenu(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
// //STUB REPORTS
|
||||
// //Report not Print, print is a further option
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Report",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "stub: Last report used",
|
||||
// icon: "$ayiFileAlt",
|
||||
// key: FORM_KEY + ":report:STUBlastusedreportid",
|
||||
// vm: vm
|
||||
// });
|
||||
|
||||
// menuOptions.menuItems.push({
|
||||
// title: "Extensions",
|
||||
// icon: "fa - puzzle-piece",
|
||||
// key: FORM_KEY + ":extensions",
|
||||
// vm: vm
|
||||
// });
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user