This commit is contained in:
2020-04-07 14:14:02 +00:00
parent 45ce2be3d8
commit fafb523630
2 changed files with 22 additions and 16 deletions

View File

@@ -573,25 +573,27 @@ function clickHandler(menuItem) {
m.vm.duplicate();
break;
case "report":
//todo: code the rest of this block
//update generateMenu to put in last report choice from vuex
//update enable / disable menu item code to make reports disabled when dirty like save and duplicate
if (m.id != null) {
//last report selected
alert("STUB: last report selected for " + m.id);
} else {
//finally, make a fake report viewer view to go to with choices set
m.vm.$refs.reportSelector.open().then(res => {
//if null for no selection
//just bail out
if (res == null) {
return;
}
//finally, make a fake report viewer view to go to with choices set
//persist last report selected
window.$gz.form.setLastReport(FORM_KEY, res);
m.vm.$refs.reportSelector.open().then(res => {
//if null for no selection
//just bail out
if (res == null) {
return;
}
//Now open the report viewer...
alert("STUB: view report " + res.name);
});
}
//persist last report selected
window.$gz.form.setLastReport(FORM_KEY, res);
//Now open the report viewer...
alert("STUB: view report " + res.name);
});
break;
default:
window.$gz.eventBus.$emit(