This commit is contained in:
2021-04-27 23:28:40 +00:00
parent fbbe48367c
commit 30771fd349

View File

@@ -5,7 +5,7 @@
</div> </div>
<template v-if="hasState"> <template v-if="hasState">
<div> <div class="mb-6 mb-sm-0">
<v-btn icon class="ml-n1 mr-2" @click="openDialog = true"> <v-btn icon class="ml-n1 mr-2" @click="openDialog = true">
<v-icon>{{ openIcon() }}</v-icon> <v-icon>{{ openIcon() }}</v-icon>
</v-btn> </v-btn>
@@ -130,7 +130,7 @@
</v-card-text> </v-card-text>
<v-card-actions> <v-card-actions>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn color="blue darken-1" text @click="openDialog = false">{{ <v-btn color="blue darken-1" text @click="cancelDialog()">{{
$ay.t("Cancel") $ay.t("Cancel")
}}</v-btn> }}</v-btn>
<v-btn <v-btn
@@ -260,9 +260,7 @@ export default {
created: window.$gz.locale.nowUTC8601String() created: window.$gz.locale.nowUTC8601String()
}); });
//flag header itself as dirty this.selectedStatus = null;
//this.value.isDirty = true; //Not sure why this is here
//flag form dirty //flag form dirty
this.pvm.formState.dirty = true; this.pvm.formState.dirty = true;
} }
@@ -306,7 +304,11 @@ export default {
return "$ayiHistory"; return "$ayiHistory";
}, },
save() { save() {
console.log("STUB: doSAVE clicked"); this.addState();
this.openDialog = false;
},
cancelDialog() {
this.selectedStatus = null;
this.openDialog = false; this.openDialog = false;
}, },
fieldValueChanged(ref) { fieldValueChanged(ref) {