From 9a368483aee0f983059e5b76055a1804ae122bcc Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 8 Jul 2021 09:27:51 +0200 Subject: [PATCH] style decay start date --- frontend/src/components/DecayInformation.vue | 20 ++++++++++++------- frontend/src/views/Pages/AccountOverview.vue | 2 +- .../AccountOverview/GddTransactionList.vue | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 4035bad3c..84b9a1310 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -52,14 +52,20 @@ export default { diff: {}, } }, + created() { + console.log("start", start) + }, methods: { - getDuration(start, end) { - this.a = new Date(start) - this.b = new Date(end) - this.a = this.$moment.unix(this.a) - this.b = this.$moment.unix(this.b) - this.diff = this.$moment.duration(this.a.diff(this.b)) - this.duration = this.diff._data + getDuration(start, end) { + console.log("start", start) + console.log("end", end) + this.a = new Date(start) + this.b = new Date(end) + this.a = this.$moment.unix(this.a) + this.b = this.$moment.unix(this.b) + this.diff = this.$moment.duration(this.a.diff(this.b)) + this.duration = this.diff._data + }, }, } diff --git a/frontend/src/views/Pages/AccountOverview.vue b/frontend/src/views/Pages/AccountOverview.vue index 35490e093..bbe16b539 100644 --- a/frontend/src/views/Pages/AccountOverview.vue +++ b/frontend/src/views/Pages/AccountOverview.vue @@ -30,7 +30,7 @@ + \ No newline at end of file