base work for edit mf done

This commit is contained in:
Paul Wilde 2023-02-11 12:02:39 +00:00
parent 22f368bf22
commit ed1a240777

View file

@ -9,10 +9,10 @@
<v-container>
<v-row>
<v-col cols="6">
{{ mf }}
</v-col>
</v-row>
</v-container>
{{ mf }}
</v-card-text>
<v-card-actions>
<v-btn v-if="!mf.isNew" color="red-darken-1"
@ -43,6 +43,15 @@ export default {
mf: this.set_mf,
}
},
computed: {
title() {
if ( this.mf.isNew ) {
return "New Medicated Feed"
} else {
return "Edit Medicated Feed"
}
}
},
methods: {
close() {
this.$emit('closetab','list')