mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-22 11:05:17 +00:00
Add refresh-block to refreshSlow
This commit is contained in:
parent
f2e7d61785
commit
3bf4eb94c6
|
@ -75,7 +75,6 @@ export default defineComponent({
|
|||
];
|
||||
|
||||
const tableItems = computed(() => {
|
||||
console.log('tableItems called');
|
||||
const val: ComparisonTableItems[] = [];
|
||||
const summary: ComparisonTableItems = {
|
||||
botId: undefined,
|
||||
|
|
|
@ -205,6 +205,7 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
}
|
||||
// Refresh data only when needed
|
||||
if (forceUpdate || this.refreshRequired) {
|
||||
this.refreshing = true;
|
||||
// TODO: Should be AxiosInstance
|
||||
const updates: Promise<any>[] = [];
|
||||
updates.push(this.getPerformance());
|
||||
|
@ -216,6 +217,7 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
updates.push(this.getBlacklist());
|
||||
await Promise.all(updates);
|
||||
this.refreshRequired = false;
|
||||
this.refreshing = false;
|
||||
}
|
||||
return Promise.resolve();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user