This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# CLIENT TODO (J.F.C. - Just fucking code it already)
|
||||
|
||||
Happy monday, some fun items to start the week...
|
||||
|
||||
|
||||
All platforms and browsers
|
||||
- IN PROGRESS: Initially outdated, had to force a refresh to make it load the latest version
|
||||
@@ -39,7 +39,7 @@ All platforms and browsers
|
||||
- DONE That way we can put anything into the data key again because in future might need whole objects etc (almost certainly will)
|
||||
- DONE Move ABOUT item to just above HELP in menu and remove from main NAV and make it navigate properly on click
|
||||
- DONE Make about contextual and insert a menu item to view log
|
||||
### HERE --->>> - WIRE up save menu item and add code to disable save on broken rules (and make red, disabled etc)
|
||||
- WIRE up save menu item and add code to disable save on broken rules (and make red, disabled etc)
|
||||
- Wire up delete menu item
|
||||
- api code is stubbed out for delete, need to write that as well
|
||||
- DONE TODO navigating through menu doesn't "back" properly when clicking back on browser controls
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
||||
<v-layout align-left justify-center row wrap mt-5>
|
||||
<!-- <v-layout align-left justify-center row wrap mt-5>
|
||||
<v-flex xs6 sm4>
|
||||
<v-btn small @click="remove">{{ this.$gzlocale.get("Delete")}}</v-btn>
|
||||
</v-flex>
|
||||
@@ -122,7 +122,7 @@
|
||||
<v-flex xs6 sm4>
|
||||
<v-btn small @click="submit">{{ this.$gzlocale.get("Save")}}</v-btn>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
</v-layout>-->
|
||||
</v-form>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
@@ -131,9 +131,26 @@
|
||||
<script>
|
||||
/* xeslint-disable */
|
||||
function clickHandler(menuItem) {
|
||||
if (!menuItem) {
|
||||
return;
|
||||
}
|
||||
var item = this.$gzmenu.parseMenuItem(menuItem);
|
||||
if (item.owner == "inventory-widget-edit" && !item.disabled) {
|
||||
alert("inventory-widget-edit.vue::context click: " + item.key);
|
||||
switch (item.key) {
|
||||
case "save":
|
||||
this.submit();
|
||||
break;
|
||||
case "delete":
|
||||
this.remove();
|
||||
break;
|
||||
case "duplicate":
|
||||
this.duplicate();
|
||||
break;
|
||||
default:
|
||||
alert(
|
||||
"inventory-widget-edit.vue::context click: [" + menuItem.key + "]"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
export default {
|
||||
@@ -186,7 +203,8 @@ export default {
|
||||
title: this.$gzlocale.get("Save"),
|
||||
icon: "save",
|
||||
surface: true,
|
||||
key: "inventory-widget-edit:save"
|
||||
key: "inventory-widget-edit:save",
|
||||
method: this.submit
|
||||
},
|
||||
{
|
||||
title: this.$gzlocale.get("Delete"),
|
||||
@@ -271,12 +289,19 @@ export default {
|
||||
that.$gzHandleFormError(error, that);
|
||||
});
|
||||
}
|
||||
}, //end of submit()
|
||||
},
|
||||
remove() {
|
||||
//check rights
|
||||
//do the delete
|
||||
alert("STUB: DELETE");
|
||||
}, //end of remove()
|
||||
},
|
||||
duplicate() {
|
||||
//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"),
|
||||
|
||||
Reference in New Issue
Block a user