EOD FRIDAY!

This commit is contained in:
2019-11-08 22:02:23 +00:00
parent b5d2a72f65
commit 9d6619c2e0
7 changed files with 38 additions and 133 deletions

View File

@@ -418,7 +418,7 @@ export default {
if (res.error.code == "2010") {
//notify not found error then navigate backwards
window.$gz.dialog
.displayLTErrorMessage(vm, "ErrorAPI2010")
.displayLTErrorMessage("ErrorAPI2010")
.then(() => {
// navigate backwards
vm.$router.go(-1);
@@ -592,18 +592,21 @@ function clickHandler(menuItem) {
m.vm.duplicate();
break;
case "report":
var reportList = window.$gz.report.availableReports("WIDGET");
var selectedItem = reportList[0].value;
window.$gz.dialog
.getReportChoice(m.vm, reportList, selectedItem)
.then(res => {
if (res) {
window.$gz.eventBus.$emit(
"notify-success",
FORM_KEY + "::report click, selected is: [" + res + "]"
);
}
});
//TODO: FOLLOWING TWO LINES STILL VALID BUT NEED TO MAKE A REPORT CHOOSER COMPONENT
// var reportList = window.$gz.report.availableReports("WIDGET");
// var selectedItem = reportList[0].value;
alert("STUB: REPORT LIST DIALOG");
// window.$gz.dialog
// .getReportChoice(m.vm, reportList, selectedItem)
// .then(res => {
// if (res) {
// window.$gz.eventBus.$emit(
// "notify-success",
// FORM_KEY + "::report click, selected is: [" + res + "]"
// );
// }
// });
break;
default: