This commit is contained in:
2021-01-02 19:23:21 +00:00
parent 6e7d786744
commit 1d78299697
8 changed files with 10 additions and 140 deletions

View File

@@ -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({