Editor close

This commit is contained in:
Jörn-Michael Miehe 2019-05-20 17:06:12 +02:00
parent 1354b59cb0
commit da69fb8e9d

View file

@ -14,13 +14,14 @@
label="Edit Deck" label="Edit Deck"
:value="list" :value="list"
rows="35" rows="35"
hint="Change card counts and/or serial numbers. Names will be updated automatically." hint="Change card counts and/or serial numbers. Names will be updated accordingly!"
style="font-family: monospace" style="font-family: monospace"
@input="checked = false"
> >
</v-textarea> </v-textarea>
<v-card-actions> <v-card-actions>
<v-btn color="error" @click.native="$emit('input', false)"> <v-btn color="error" @click.native="close">
<v-icon>cancel</v-icon> <v-icon>cancel</v-icon>
cancel cancel
</v-btn> </v-btn>
@ -157,6 +158,12 @@ export default {
return retval return retval
}, },
close() {
this.checked = false
this.$emit('input', false)
},
check() { check() {
let new_deck = this.parse_deck(this.$refs.textarea.lazyValue) let new_deck = this.parse_deck(this.$refs.textarea.lazyValue)