This commit is contained in:
2019-12-06 20:56:03 +00:00
parent c8c2c67d35
commit 221f2ef338

View File

@@ -212,32 +212,10 @@ function clickHandler(menuItem) {
if (m.owner == FORM_KEY && !m.disabled) {
switch (m.key) {
case "save":
m.vm.submit();
alert("STUB: SAVE");
// m.vm.submit();
break;
case "delete":
m.vm.remove();
break;
case "duplicate":
m.vm.duplicate();
break;
case "report":
//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:
window.$gz.eventBus.$emit(
"notify-warning",