Rebuild frontend, do not use store in components.

This commit is contained in:
James Cole
2021-02-22 18:43:26 +01:00
parent 6d9acd1dc2
commit 5b5c988aa3
87 changed files with 2887 additions and 2835 deletions

View File

@@ -44,11 +44,6 @@
</template>
<script>
import {createNamespacedHelpers} from "vuex";
const {mapState, mapGetters, mapActions, mapMutations} = createNamespacedHelpers('transactions/create')
export default {
props: ['value', 'index', 'errors'],
name: "TransactionBill",
@@ -62,11 +57,6 @@ export default {
this.collectData();
},
methods: {
...mapMutations(
[
'updateField',
],
),
collectData() {
this.billList.push(
{
@@ -99,17 +89,9 @@ export default {
},
watch: {
bill: function (value) {
this.updateField({field: 'bill_id', index: this.index, value: value});
this.$emit('set-bill', value);
}
},
computed: {
...mapGetters(
[
'transactionType',
'transactions',
]
)
}
}
</script>