Fix backtesting switching not working

This commit is contained in:
Matthias 2021-10-11 19:41:31 +02:00
parent 94fb01b85e
commit ccd8944dc2
2 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,7 @@ export enum BotStoreActions {
pollBacktest = 'pollBacktest',
removeBacktest = 'removeBacktest',
stopBacktest = 'stopBacktest',
setBacktestResultKey = 'setBacktestResultKey',
sysInfo = 'sysInfo',
logout = 'logout',
}
@ -951,6 +952,9 @@ export function createBotSubStore(botId: string, botName: string) {
return Promise.reject(err);
}
},
[BotStoreActions.setBacktestResultKey]({ commit }, key: string) {
commit('setBacktestResultKey', key);
},
async [BotStoreActions.sysInfo]({ commit }) {
try {
const result = await api.get('/sysinfo');

View File

@ -385,7 +385,7 @@ export default class Backtesting extends Vue {
@ftbot.Action stopBacktest!: () => void;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@ftbot.Mutation setBacktestResultKey!: (key: string) => void;
@ftbot.Action setBacktestResultKey!: (key: string) => void;
formatPercent = formatPercent;