Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Card
v-if="data !== undefined && data > 0"
v-if="data !== undefined && data !== 0"
class="min-h-40 dark:bg-surface-800 shadow shadow-surface-950/30 rounded-lg relative"
pt:body:class="min-h-40 h-full"
pt:content:class="h-full flex justify-between flex-col"
Expand All @@ -16,7 +16,7 @@
<ProgressSpinner v-if="loading" class="w-full"></ProgressSpinner>
</ScrollPanel>
<div class="flex gap-4 mt-1">
<Button v-if="data !== 0 && data !== undefined && !loading" severity="primary" class="w-full border-none" @click="exec">
<Button v-if="data !== 0 && !loading" severity="primary" class="w-full border-none" @click="exec">
{{ $t("maintenance.backfill-album-sizes.button") }}
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<Card
v-if="data !== undefined && data > 0"
v-if="data !== undefined && data !== 0"
class="min-h-40 dark:bg-surface-800 shadow shadow-surface-950/30 rounded-lg relative"
pt:body:class="min-h-40 h-full"
pt:content:class="h-full flex justify-between flex-col"
Expand All @@ -16,7 +16,7 @@
<ProgressSpinner v-if="loading" class="w-full"></ProgressSpinner>
</ScrollPanel>
<div class="flex gap-4 mt-1">
<Button v-if="data > 0 && !loading" severity="primary" class="w-full border-none" @click="exec">
<Button v-if="data !== 0 && !loading" severity="primary" class="w-full border-none" @click="exec">
{{ $t("maintenance.fulfill-precompute.button") }}
</Button>
</div>
Expand All @@ -40,6 +40,9 @@ const loading = ref(false);
const toast = useToast();

const description = computed(() => {
if (data.value === -1) {
return "";
}
return sprintf(trans("maintenance.fulfill-precompute.description"), data.value);
});

Expand Down
Loading