This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user