apps: enable storage view in all error states
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user