mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Add botstatusAvailable as getter
This commit is contained in:
parent
f26507f97c
commit
7cb070975d
|
@ -59,6 +59,7 @@ export enum BotStoreGetters {
|
||||||
autoRefresh = 'autoRefresh',
|
autoRefresh = 'autoRefresh',
|
||||||
refreshNow = 'refreshNow',
|
refreshNow = 'refreshNow',
|
||||||
refreshing = 'refreshing',
|
refreshing = 'refreshing',
|
||||||
|
botStatusAvailable = 'botStatusAvailable',
|
||||||
|
|
||||||
openTrades = 'openTrades',
|
openTrades = 'openTrades',
|
||||||
openTradeCount = 'openTradeCount',
|
openTradeCount = 'openTradeCount',
|
||||||
|
@ -185,14 +186,16 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
(selectedBot === botId || bgRefresh) &&
|
(selectedBot === botId || bgRefresh) &&
|
||||||
getters.autoRefresh &&
|
getters.autoRefresh &&
|
||||||
getters.isBotOnline &&
|
getters.isBotOnline &&
|
||||||
state.botStatusAvailable &&
|
getters.botStatusAvailable &&
|
||||||
!getters.isWebserverMode
|
!getters.isWebserverMode
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
[BotStoreGetters.botStatusAvailable](state: FtbotStateType) {
|
||||||
|
return state.botStatusAvailable;
|
||||||
|
},
|
||||||
[BotStoreGetters.plotConfig](state: FtbotStateType) {
|
[BotStoreGetters.plotConfig](state: FtbotStateType) {
|
||||||
return state.customPlotConfig[state.plotConfigName] || { ...EMPTY_PLOTCONFIG };
|
return state.customPlotConfig[state.plotConfigName] || { ...EMPTY_PLOTCONFIG };
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user