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

@@ -5,7 +5,7 @@
<script>
import UnderConstruction from "../components/underconstruction.vue";
/**
*
* NOTE: In router.js I've made the ayatype parameter OPTIONAL, so make sure to deal with that, it may be undefined, not just zero
* - PUT SEARCH into main menu, it's constantly there like help with the source as part of the data sent with the click
- I.E. source could be widget from list or widget entry form and so user is searching widgets or source could be a main page where there is no source so it's empty and search everything
- User clicks on search, it opens a main search form view which is also accessible under HOME section normally so two ways to get there

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);
}