Add refresh-block to refreshSlow

This commit is contained in:
Matthias 2022-05-12 06:38:07 +02:00
parent f2e7d61785
commit 3bf4eb94c6
2 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,6 @@ export default defineComponent({
];
const tableItems = computed(() => {
console.log('tableItems called');
const val: ComparisonTableItems[] = [];
const summary: ComparisonTableItems = {
botId: undefined,

View File

@ -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();
},