From 2fa927266f90263e9617ffa621209c0ff1a3d3e9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 20 Jun 2021 18:39:15 +0200 Subject: [PATCH] Fix #4864 and relatred issues. --- frontend/src/components/transactions/Create.vue | 9 ++++++++- frontend/src/components/transactions/Index.vue | 8 ++++---- frontend/src/components/transactions/TransactionBill.vue | 4 ---- .../src/components/transactions/TransactionNotes.vue | 7 +------ .../src/components/transactions/TransactionPiggyBank.vue | 6 +----- frontend/src/components/transactions/TransactionTags.vue | 5 ----- 6 files changed, 14 insertions(+), 25 deletions(-) diff --git a/frontend/src/components/transactions/Create.vue b/frontend/src/components/transactions/Create.vue index 338221a7b0..f29b53103c 100644 --- a/frontend/src/components/transactions/Create.vue +++ b/frontend/src/components/transactions/Create.vue @@ -195,7 +195,7 @@ export default { /** * Grabbed from the store. */ - ...mapGetters('transactions/create', ['transactionType', 'transactions', 'groupTitle','defaultErrors']), + ...mapGetters('transactions/create', ['transactionType', 'transactions', 'groupTitle', 'defaultErrors']), ...mapGetters('root', ['listPageSize']) }, watch: { @@ -713,13 +713,20 @@ export default { let current = array.tags[i]; if (typeof current === 'object' && null !== current) { currentSplit.tags.push(current.text); + console.log('Add tag "' + current.text + '" from object.'); + continue; } if (typeof current === 'string') { currentSplit.tags.push(current); + console.log('Add tag "' + current + '" from string.'); + continue; } + console.log('Is neither.'); } } } + console.log('Current split tags is now: '); + console.log(currentSplit.tags); // bills and piggy banks if (0 !== array.piggy_bank_id) { diff --git a/frontend/src/components/transactions/Index.vue b/frontend/src/components/transactions/Index.vue index 19ea5ba9d7..8d1cd9aa6d 100644 --- a/frontend/src/components/transactions/Index.vue +++ b/frontend/src/components/transactions/Index.vue @@ -50,10 +50,10 @@
-
+
-