EOD FRIDAY!
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user