This commit is contained in:
2021-09-19 22:06:26 +00:00
parent 6638b4d665
commit 42fc8a8f52

View File

@@ -115,12 +115,15 @@
<v-card-title>{{ $ay.t("New") }}</v-card-title>
<v-card-text>
<v-col cols="12">
<v-btn x-large block
<v-btn
x-large
block
@click="newItem($ay.ayt().WorkOrderItemScheduledUser)"
><v-icon large left>$ayiTools</v-icon
>{{ $ay.t("WorkOrder") }}</v-btn
> </v-col
><v-col cols="12">
<v-btn x-large block
<v-btn x-large block @click="newItem($ay.ayt().Reminder)"
><v-icon large left>$ayiStickyNote</v-icon
>{{ $ay.t("Reminder") }}</v-btn
>
@@ -390,6 +393,13 @@ export default {
};
},
methods: {
newItem(atype) {
console.log("new item", atype);
//remove faux item, server will provide it back once it's created anyway
this.events.splice(this.events.length - 1);
this.newItemDialog = false;
},
cancelAddNew() {
this.events.splice(this.events.length - 1);
this.newItemDialog = false;