Fixup some vue prop type warnings in repair view
This commit is contained in:
@@ -65,7 +65,7 @@ onMounted(() => {
|
||||
<label>{{ $t('app.repair.restart.title') }}</label>
|
||||
<div>{{ $t('app.repair.restart.description') }}</div>
|
||||
<br/>
|
||||
<Button @click="onRestart()" :disabled="busyRestart || app.taskId || !!app.error" :loading="busyRestart || app.installationState === 'pending_restart'">{{ $t('app.repair.recovery.restartAction') }}</Button>
|
||||
<Button @click="onRestart()" :disabled="!!(busyRestart || app.taskId || !!app.error)" :loading="busyRestart || app.installationState === 'pending_restart'">{{ $t('app.repair.recovery.restartAction') }}</Button>
|
||||
</div>
|
||||
<hr style="margin-top: 20px"/>
|
||||
|
||||
@@ -73,7 +73,7 @@ onMounted(() => {
|
||||
<label>{{ $t('app.repair.recovery.title') }}</label>
|
||||
<div v-html="$t('app.repair.recovery.description', { docsLink: 'https://docs.cloudron.io/apps/#recovery-mode' })"></div>
|
||||
<br/>
|
||||
<Button @click="onToggleDebugMode" :disabled="debugModeBusy || (app.error && app.error.installationState !== ISTATES.PENDING_DEBUG) || app.taskId">
|
||||
<Button @click="onToggleDebugMode" :disabled="!!(debugModeBusy || (app.error && app.error.installationState !== ISTATES.PENDING_DEBUG) || app.taskId)">
|
||||
<span v-if="app.debugMode">{{ $t('app.repair.recovery.disableAction') }}</span>
|
||||
<span v-else>{{ $t('app.repair.recovery.enableAction') }}</span>
|
||||
</Button>
|
||||
@@ -86,7 +86,7 @@ onMounted(() => {
|
||||
<div>{{ $t('app.repair.taskError.description') }}</div>
|
||||
<div v-if="app.error" style="margin-top: 10px;">An error occurred during the <b>{{ taskNameFromInstallationState(app.error.installationState) }}</b> operation: <span class="text-danger"><b>{{ app.error.reason + ': ' + app.error.message }}</b></span></div>
|
||||
<br/>
|
||||
<Button @click="onRepair()" :disabled="busyRepair || app.taskId || !app.error" :loading="busyRepair">{{ $t('app.repair.taskError.retryAction', { task: app.error ? taskNameFromInstallationState(app.error.installationState) : '' }) }}</Button>
|
||||
<Button @click="onRepair()" :disabled="!!(busyRepair || app.taskId || !app.error)" :loading="busyRepair">{{ $t('app.repair.taskError.retryAction', { task: app.error ? taskNameFromInstallationState(app.error.installationState) : '' }) }}</Button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user