This commit is contained in:
@@ -179,7 +179,10 @@ function clickHandler(menuItem) {
|
||||
m.vm.duplicate();
|
||||
break;
|
||||
default:
|
||||
alert("inventory-widget-edit.vue::context click: [" + m.key + "]");
|
||||
m.vm.$gzevent.$emit(
|
||||
"notify-warning",
|
||||
"inventory-widget-edit.vue::context click: [" + m.key + "]"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -433,54 +436,12 @@ export default {
|
||||
});
|
||||
},
|
||||
duplicate() {
|
||||
// this.$gzform.confirmDelete(this).then(res => {
|
||||
// console.log(res);
|
||||
// });
|
||||
|
||||
// this.$dialog.confirm({
|
||||
// text: "Do you really want to exit?",
|
||||
// title: "Warning"
|
||||
// }).then(res => {
|
||||
// console.log("The dialog result is:");
|
||||
// console.log(res);
|
||||
// });
|
||||
|
||||
//console.log(this.$gzform.confirm(this));
|
||||
|
||||
// this.$dialog.error({
|
||||
// text: "Cannot delete this item",
|
||||
// title: "Error"
|
||||
// });
|
||||
// console.log("Done dialog");
|
||||
|
||||
// this.$dialog.notify.info("Test notification", {
|
||||
// position: "top-right",
|
||||
// timeout: 5000
|
||||
// });
|
||||
|
||||
// this.$dialog.message.info("Test", {
|
||||
// position: "top-left"
|
||||
// });
|
||||
// this.$gzevent.$emit(
|
||||
// "popup-message",
|
||||
// "This is a test popup message\r\nDUPLICATE ALL THE THINGS!"
|
||||
// );
|
||||
//only if not dirty
|
||||
//check rights
|
||||
//duplicate
|
||||
//navigate to new record
|
||||
alert("STUB: DUPLICATE");
|
||||
},
|
||||
stubTestClick() {
|
||||
this.$gzevent.$emit("menu-replace-item", {
|
||||
title: this.$gzlocale.get("Save"),
|
||||
surface: true,
|
||||
icon: "save",
|
||||
color: "error",
|
||||
disabled: true,
|
||||
key: "inventory-widget-edit:save"
|
||||
});
|
||||
// alert("stub test click");
|
||||
throw "T$EST";
|
||||
//alert("STUB: DUPLICATE");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user