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