This commit is contained in:
2020-04-07 18:10:46 +00:00
parent 167357a0bd
commit d004eb0ae4

View File

@@ -575,14 +575,12 @@ function clickHandler(menuItem) {
case "report": case "report":
if (m.id != null) { if (m.id != null) {
//last report selected //last report selected
//alert("STUB: last report selected for " + m.id);
// /report/:ayatype/:recordid
m.vm.$router.push({ m.vm.$router.push({
name: "ay-report", name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.Widget } params: { recordid: m.id, ayatype: window.$gz.type.Widget }
}); });
} else { } else {
//finally, make a fake report viewer view to go to with choices set //general report selector chosen
m.vm.$refs.reportSelector.open().then(res => { m.vm.$refs.reportSelector.open().then(res => {
//if null for no selection //if null for no selection
//just bail out //just bail out
@@ -599,7 +597,6 @@ function clickHandler(menuItem) {
}); });
}); });
} }
break; break;
default: default:
window.$gz.eventBus.$emit( window.$gz.eventBus.$emit(