This commit is contained in:
2020-06-19 22:23:17 +00:00
parent 3c74c1d75d
commit 5c8151a95a

View File

@@ -583,7 +583,7 @@ export default {
///////////////////////////// /////////////////////////////
// //
// //
function clickHandler(menuItem) { async function clickHandler(menuItem) {
if (!menuItem) { if (!menuItem) {
return; return;
} }
@@ -614,20 +614,20 @@ function clickHandler(menuItem) {
}); });
} else { } else {
//general report selector chosen //general report selector chosen
m.vm.$refs.reportSelector.open().then(res => { let res = await m.vm.$refs.reportSelector.open();
//if null for no selection
//just bail out
if (res == null) {
return;
}
//persist last report selected
window.$gz.form.setLastReport(FORM_KEY, res);
//Now open the report viewer... //if null for no selection
m.vm.$router.push({ //just bail out
name: "ay-report", if (res == null) {
params: { recordid: res.id, ayatype: window.$gz.type.Widget } return;
}); }
//persist last report selected
window.$gz.form.setLastReport(FORM_KEY, res);
//Now open the report viewer...
m.vm.$router.push({
name: "ay-report",
params: { recordid: res.id, ayatype: window.$gz.type.Widget }
}); });
} }
break; break;