Split components for future recycling.

This commit is contained in:
James Cole
2021-02-14 19:13:42 +01:00
parent bfd925fbfe
commit e51f593a2d
37 changed files with 687 additions and 430 deletions

View File

@@ -26,7 +26,7 @@
</div>
<div class="input-group">
<textarea
v-model="value"
v-model="notes"
:class="errors.length > 0 ? 'form-control is-invalid' : 'form-control'"
:placeholder="$t('firefly.notes')"
></textarea>
@@ -43,6 +43,11 @@ const {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers
export default {
props: ['index', 'value', 'errors'],
name: "TransactionNotes",
data() {
return {
notes: this.value
}
},
methods: {
...mapMutations(
[
@@ -51,7 +56,7 @@ export default {
),
},
watch: {
value: function (value) {
notes: function (value) {
this.updateField({field: 'notes', index: this.index, value: value});
}
}