未验证 提交 1a14d696 编写于 作者: M Marcin Maciaszczyk 提交者: GitHub

Fix deply redirect and error messages (#5033)

上级 333372cf
......@@ -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.',
};
/**
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册