apps: enable storage view in all error states
This commit is contained in:
@@ -225,7 +225,7 @@ onMounted(async () => {
|
||||
</FormGroup>
|
||||
|
||||
<br/>
|
||||
<Button @click="onSubmitMounts()" :loading="mountsBusy" :disabled="mountsBusy || (app.error && app.error.installationState !== ISTATES.PENDING_RECREATE_CONTAINER) || !!app.taskId || (!app.error && !mountsChanged) || !mountsValid">{{ $t('app.storage.mounts.saveAction') }}</Button>
|
||||
<Button @click="onSubmitMounts()" :loading="mountsBusy" :disabled="mountsBusy || !!app.taskId || !mountsChanged || !mountsValid">{{ $t('app.storage.mounts.saveAction') }}</Button>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -151,7 +151,7 @@ function isViewEnabled(view, errorState) {
|
||||
} else if (view === 'resources') {
|
||||
return errorState === ISTATES.PENDING_RESIZE || errorState === ISTATES.PENDING_RECREATE_CONTAINER;
|
||||
} else if (view === 'storage') {
|
||||
return errorState === ISTATES.PENDING_DATA_DIR_MIGRATION || errorState === ISTATES.PENDING_RECREATE_CONTAINER;
|
||||
return true; // allow in all states because a volume error can happen at any time
|
||||
} else if (view === 'services') {
|
||||
return errorState === ISTATES.PENDING_SERVICES_CHANGE;
|
||||
} else if (view === 'email') {
|
||||
|
||||
Reference in New Issue
Block a user