apps: enable storage view in all error states

This commit is contained in:
Girish Ramakrishnan
2026-02-28 02:10:20 +01:00
parent cd89883dbb
commit 61d4a795ae
3 changed files with 4 additions and 4 deletions

View File

@@ -1752,8 +1752,8 @@ function checkAppState(app, state) {
// allow task to be called again if that was the errored task
if (app.error.installationState === state) return null;
// allow uninstall from any state
if (state !== ISTATE_PENDING_UNINSTALL && state !== ISTATE_PENDING_RESTORE && state !== ISTATE_PENDING_IMPORT) return new BoxError(BoxError.BAD_STATE, 'Not allowed in error state');
// allow uninstall, restore, import and recreate (for mount/device/env edits) from any error state
if (state !== ISTATE_PENDING_UNINSTALL && state !== ISTATE_PENDING_RESTORE && state !== ISTATE_PENDING_IMPORT && state !== ISTATE_PENDING_RECREATE_CONTAINER) return new BoxError(BoxError.BAD_STATE, 'Not allowed in error state');
}
if (app.runState === RSTATE_STOPPED) {