From cac64f96a01cc57021963aede87b6a45fc2d720c Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 5 Apr 2023 14:17:12 +0200 Subject: [PATCH] fix(frontend): displayed decay duration --- frontend/package.json | 2 +- .../TransactionRows/DurationRow.vue | 21 +++++++------------ frontend/src/i18n.js | 4 ---- frontend/src/plugins/dashboard-plugin.js | 3 --- frontend/test/testSetup.js | 3 --- frontend/yarn.lock | 17 +++++---------- 6 files changed, 14 insertions(+), 36 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 513b6b509..812735e3e 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -26,6 +26,7 @@ "bootstrap": "^4.5.3", "bootstrap-vue": "^2.21.2", "clipboard-polyfill": "^4.0.0-rc1", + "date-fns": "^2.29.3", "es6-promise": "^4.1.1", "eslint": "^7.25.0", "eslint-config-prettier": "^8.1.0", @@ -58,7 +59,6 @@ "vue-i18n": "^8.22.4", "vue-jest": "^3.0.7", "vue-loading-overlay": "^3.4.2", - "vue-moment": "^4.1.0", "vue-router": "^3.0.6", "vue-timers": "^2.0.4", "vue2-transitions": "^0.2.3", diff --git a/frontend/src/components/TransactionRows/DurationRow.vue b/frontend/src/components/TransactionRows/DurationRow.vue index aa20132d7..6f62d9dc5 100644 --- a/frontend/src/components/TransactionRows/DurationRow.vue +++ b/frontend/src/components/TransactionRows/DurationRow.vue @@ -5,12 +5,17 @@
{{ $t('decay.past_time') }}
- {{ durationText }} + {{ duration }}