{downloading ? $i18n.t('Downloading stats...') : $i18n.t('Syncing stats...')}
-
{Math.round((processedItemsCount / total) * 100) || 0}%
+
+ {#if total > 0}
+ {processedItemsCount}/{total}
+ {:else}
+ {processedItemsCount}
+ {/if}
+
@@ -311,12 +462,7 @@
class="px-4 py-2 rounded-full text-sm font-medium bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100 transition disabled:cursor-not-allowed"
on:click={() => {
if (syncing) {
- cancelDownload();
- if (downloading) {
- cancelDownload();
- } else {
- syncing = false;
- }
+ cancelOperation();
} else {
show = false;
}
@@ -327,9 +473,7 @@