diff --git a/src/app/frontend/common/errors/errors.ts b/src/app/frontend/common/errors/errors.ts index 519ad801170d..eb133fd38688 100644 --- a/src/app/frontend/common/errors/errors.ts +++ b/src/app/frontend/common/errors/errors.ts @@ -40,6 +40,10 @@ const localizedErrors: {[key: string]: string} = { MSG_ACCESS_DENIED: 'Access denied.', MSG_DASHBOARD_EXCLUSIVE_RESOURCE_ERROR: 'Trying to access/modify dashboard exclusive resource.', MSG_LOGIN_UNAUTHORIZED_ERROR: 'Invalid credentials provided', + MSG_DEPLOY_NAMESPACE_MISMATCH_ERROR: + 'Cannot deploy to the namespace different than the currently selected one.', + MSG_DEPLOY_EMPTY_NAMESPACE_ERROR: + 'Cannot deploy the content as the target namespace is not specified.', }; /** diff --git a/src/app/frontend/common/services/create/service.ts b/src/app/frontend/common/services/create/service.ts index 2daa087c4c06..2f98b6a94eba 100644 --- a/src/app/frontend/common/services/create/service.ts +++ b/src/app/frontend/common/services/create/service.ts @@ -96,7 +96,9 @@ export class CreateService { this.reportError(i18n.MSG_DEPLOY_DIALOG_ERROR, error.error); throw error; } else { - this.router_.navigate(['overview']); + this.router_.navigate(['overview'], { + queryParams: {[NAMESPACE_STATE_PARAM]: this.namespace_.current()}, + }); } return response;