Avoid some flickering in the Updates UI

This commit is contained in:
Johannes Zellner
2025-08-06 19:43:43 +02:00
parent 841c7730e7
commit 2a3ab0ecb2
+3 -3
View File
@@ -316,7 +316,7 @@ onMounted(async () => {
<Section :title="$t('settings.updates.title')">
<template #header-buttons>
<Button tool :menu="taskLogsMenu">{{ $t('main.action.logs') }}</Button>
<Button tool :menu="taskLogsMenu" :disabled="taskLogsMenu.length === 0">{{ $t('main.action.logs') }}</Button>
</template>
<p v-html="$t('settings.updates.description')"></p>
@@ -324,8 +324,8 @@ onMounted(async () => {
<SettingsItem>
<FormGroup>
<label>{{ $t('settings.updates.schedule') }}</label>
<span v-show="currentPattern !== 'never'">{{ prettyAutoUpdateSchedule(currentPattern) }}</span>
<span v-show="currentPattern === 'never'">{{ $t('settings.updates.disabled') }}</span>
<span v-if="currentPattern !== 'never'">{{ prettyAutoUpdateSchedule(currentPattern) || '-' }}</span>
<span v-else>{{ $t('settings.updates.disabled') }}</span>
</FormGroup>
<div style="display: flex; align-items: center">
<Button tool plain @click="onShowConfigure()">{{ $t('main.dialog.edit') }}</Button>