Use getter class

This commit is contained in:
Matthias 2020-08-29 11:13:26 +02:00
parent 163b4dcc9b
commit 843e54afec

View File

@ -79,6 +79,7 @@ import ReloadControl from '@/components/ftbot/ReloadControl.vue';
import LogViewer from '@/components/ftbot/LogViewer.vue'; import LogViewer from '@/components/ftbot/LogViewer.vue';
import { Trade } from '@/store/types'; import { Trade } from '@/store/types';
import { UserStoreGetters } from '@/store/modules/ftbot';
const ftbot = namespace('ftbot'); const ftbot = namespace('ftbot');
@ -99,14 +100,11 @@ const ftbot = namespace('ftbot');
export default class Trading extends Vue { export default class Trading extends Vue {
@ftbot.State detailTradeId!: string; @ftbot.State detailTradeId!: string;
@ftbot.Getter @ftbot.Getter openTrades!: Array<Trade>;
openTrades!: Array<Trade>;
@ftbot.Getter @ftbot.Getter closedTrades!: Array<Trade>;
closedTrades!: Array<Trade>;
@ftbot.Getter @ftbot.Getter [UserStoreGetters.openTradeDetail]!: Trade;
openTradeDetail!: Trade;
} }
</script> </script>