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