File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
resources/js/components/maintenance Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11<template >
22 <Card
3- v-if =" data !== undefined && data > 0"
3+ v-if =" data !== undefined && data !== 0"
44 class =" min-h-40 dark:bg-surface-800 shadow shadow-surface-950/30 rounded-lg relative"
55 pt:body:class =" min-h-40 h-full"
66 pt:content:class =" h-full flex justify-between flex-col"
1616 <ProgressSpinner v-if =" loading" class =" w-full" ></ProgressSpinner >
1717 </ScrollPanel >
1818 <div class =" flex gap-4 mt-1" >
19- <Button v-if =" data !== 0 && data !== undefined && !loading" severity =" primary" class =" w-full border-none" @click =" exec" >
19+ <Button v-if =" data !== 0 && !loading" severity =" primary" class =" w-full border-none" @click =" exec" >
2020 {{ $t("maintenance.backfill-album-sizes.button") }}
2121 </Button >
2222 </div >
Original file line number Diff line number Diff line change 11<template >
22 <Card
3- v-if =" data !== undefined && data > 0"
3+ v-if =" data !== undefined && data !== 0"
44 class =" min-h-40 dark:bg-surface-800 shadow shadow-surface-950/30 rounded-lg relative"
55 pt:body:class =" min-h-40 h-full"
66 pt:content:class =" h-full flex justify-between flex-col"
1616 <ProgressSpinner v-if =" loading" class =" w-full" ></ProgressSpinner >
1717 </ScrollPanel >
1818 <div class =" flex gap-4 mt-1" >
19- <Button v-if =" data > 0 && !loading" severity =" primary" class =" w-full border-none" @click =" exec" >
19+ <Button v-if =" data !== 0 && !loading" severity =" primary" class =" w-full border-none" @click =" exec" >
2020 {{ $t("maintenance.fulfill-precompute.button") }}
2121 </Button >
2222 </div >
@@ -40,6 +40,9 @@ const loading = ref(false);
4040const toast = useToast ();
4141
4242const description = computed (() => {
43+ if (data .value === - 1 ) {
44+ return " " ;
45+ }
4346 return sprintf (trans (" maintenance.fulfill-precompute.description" ), data .value );
4447});
4548
You can’t perform that action at this time.
0 commit comments