mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Use getter class
This commit is contained in:
parent
163b4dcc9b
commit
843e54afec
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user