Do not show empty placeholder when backupSite are still loading
This commit is contained in:
@@ -25,7 +25,7 @@ const inputDialog = useTemplateRef('inputDialog');
|
||||
|
||||
const profile = ref({});
|
||||
const sites = ref([]);
|
||||
const busy = ref(false);
|
||||
const busy = ref(true);
|
||||
|
||||
const backupSiteAddDialog = useTemplateRef('backupSiteAddDialog');
|
||||
function onAdd() {
|
||||
@@ -220,7 +220,7 @@ onMounted(async () => {
|
||||
|
||||
<div>
|
||||
<ProgressBar mode="indeterminate" v-if="busy" slim :show-label="false" />
|
||||
<div v-if="sites.length === 0">{{ $t('backup.sites.emptyPlaceholder') }}</div>
|
||||
<div v-if="!busy && sites.length === 0">{{ $t('backup.sites.emptyPlaceholder') }}</div>
|
||||
<div class="backup-site" v-for="site in sites" :key="site.id">
|
||||
<div style="display: flex; align-items: center;">
|
||||
<StateLED :busy="site.status.busy" :state="site.status.state"/>
|
||||
|
||||
Reference in New Issue
Block a user