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',
|
pollBacktest = 'pollBacktest',
|
||||||
removeBacktest = 'removeBacktest',
|
removeBacktest = 'removeBacktest',
|
||||||
stopBacktest = 'stopBacktest',
|
stopBacktest = 'stopBacktest',
|
||||||
|
setBacktestResultKey = 'setBacktestResultKey',
|
||||||
sysInfo = 'sysInfo',
|
sysInfo = 'sysInfo',
|
||||||
logout = 'logout',
|
logout = 'logout',
|
||||||
}
|
}
|
||||||
|
@ -951,6 +952,9 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
return Promise.reject(err);
|
return Promise.reject(err);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
[BotStoreActions.setBacktestResultKey]({ commit }, key: string) {
|
||||||
|
commit('setBacktestResultKey', key);
|
||||||
|
},
|
||||||
async [BotStoreActions.sysInfo]({ commit }) {
|
async [BotStoreActions.sysInfo]({ commit }) {
|
||||||
try {
|
try {
|
||||||
const result = await api.get('/sysinfo');
|
const result = await api.get('/sysinfo');
|
||||||
|
|
|
@ -385,7 +385,7 @@ export default class Backtesting extends Vue {
|
||||||
@ftbot.Action stopBacktest!: () => void;
|
@ftbot.Action stopBacktest!: () => void;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
@ftbot.Mutation setBacktestResultKey!: (key: string) => void;
|
@ftbot.Action setBacktestResultKey!: (key: string) => void;
|
||||||
|
|
||||||
formatPercent = formatPercent;
|
formatPercent = formatPercent;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user