mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Fix backtesting switching not working
This commit is contained in:
parent
94fb01b85e
commit
ccd8944dc2
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user