From 843e54afece76d18f2647100d4fad42be040b829 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 29 Aug 2020 11:13:26 +0200 Subject: [PATCH] Use getter class --- src/views/Trading.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/Trading.vue b/src/views/Trading.vue index 37f8f1ee..07fcb4dd 100644 --- a/src/views/Trading.vue +++ b/src/views/Trading.vue @@ -79,6 +79,7 @@ import ReloadControl from '@/components/ftbot/ReloadControl.vue'; import LogViewer from '@/components/ftbot/LogViewer.vue'; import { Trade } from '@/store/types'; +import { UserStoreGetters } from '@/store/modules/ftbot'; const ftbot = namespace('ftbot'); @@ -99,14 +100,11 @@ const ftbot = namespace('ftbot'); export default class Trading extends Vue { @ftbot.State detailTradeId!: string; - @ftbot.Getter - openTrades!: Array; + @ftbot.Getter openTrades!: Array; - @ftbot.Getter - closedTrades!: Array; + @ftbot.Getter closedTrades!: Array; - @ftbot.Getter - openTradeDetail!: Trade; + @ftbot.Getter [UserStoreGetters.openTradeDetail]!: Trade; }