This commit is contained in:
2019-12-31 16:59:39 +00:00
parent d2ae531b9d
commit 9921509de7
3 changed files with 28 additions and 20 deletions

View File

@@ -675,6 +675,22 @@ function generateMenu(vm) {
});
}
//STUB REPORTS
//Report not Print, print is a further option
menuOptions.menuItems.push({
title: window.$gz.locale.get("Report"),
icon: "file-alt",
key: FORM_KEY + ":report",
vm: vm
});
menuOptions.menuItems.push({
title: "stub: Last report used",
icon: "file-alt",
key: FORM_KEY + ":report:STUBlastusedreportid",
vm: vm
});
if (vm.rights.change) {
menuOptions.menuItems.push({
title: window.$gz.locale.get("Duplicate"),
@@ -684,15 +700,6 @@ function generateMenu(vm) {
});
}
//STUB REPORTS
menuOptions.menuItems.push({
title: window.$gz.locale.get("Print"),
icon: "print",
key: FORM_KEY + ":report",
vm: vm
});
window.$gz.eventBus.$emit("menu-change", menuOptions);
}