mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
update the styling used when reloading browser cache data
This commit is contained in:
@@ -70,17 +70,26 @@ export function useAppBrowserCacheSettingPageBase() {
|
||||
}
|
||||
});
|
||||
|
||||
function loadCacheStatistics(): Promise<void> {
|
||||
function loadCacheStatistics(updateLoadingState: boolean): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
loading.value = true;
|
||||
if (updateLoadingState) {
|
||||
loading.value = true;
|
||||
}
|
||||
|
||||
loadBrowserCacheStatistics().then(statistics => {
|
||||
fileCacheStatistics.value = statistics;
|
||||
exchangeRatesCacheSize.value = exchangeRatesStore.getExchangeRatesCacheSize();
|
||||
loading.value = false;
|
||||
|
||||
if (updateLoadingState) {
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
resolve();
|
||||
}).catch(error => {
|
||||
loading.value = false;
|
||||
if (updateLoadingState) {
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user