This commit is contained in:
2019-04-17 19:53:40 +00:00
parent 891154d079
commit e17fbb08de
3 changed files with 23 additions and 13 deletions

View File

@@ -130,9 +130,9 @@
<script>
/* xeslint-disable */
function clickHandler(key) {
if (!key.startsWith("app:")) {
alert("inventory-widget-edit.vue::context click: " + key);
function clickHandler(item) {
if (!item.disabled && !item.key.startsWith("app:")) {
alert("inventory-widget-edit.vue::context click: " + item.key);
}
}
export default {
@@ -186,7 +186,13 @@ export default {
icon: "clone",
key: "duplicate"
},
{ title: this.$gzlocale.get("Save"), icon: "save", key: "save" },
{
title: this.$gzlocale.get("Save"),
icon: "save",
color: "error",
disabled: true,
key: "save"
},
{
title: this.$gzlocale.get("Delete"),
icon: "trash-alt",