Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove redirect-on-login setting option from role editing form #6776

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ const handleCreateOrUpdateRole = async () => {
type="text"
validation="required|length:0,50"
></FormKit>
<FormKit
v-model="
formState.metadata.annotations[
rbacAnnotations.REDIRECT_ON_LOGIN
]
"
type="text"
:label="$t('core.role.editing_modal.fields.redirect_on_login')"
></FormKit>
<FormKit
v-model="
formState.metadata.annotations[
Expand Down
1 change: 0 additions & 1 deletion ui/src/constants/annotations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export enum rbacAnnotations {
DEPENDENCIES = "rbac.authorization.halo.run/dependencies",
AVATAR_ATTACHMENT_NAME = "halo.run/avatar-attachment-name",
LAST_AVATAR_ATTACHMENT_NAME = "halo.run/last-avatar-attachment-name",
REDIRECT_ON_LOGIN = "rbac.authorization.halo.run/redirect-on-login",
DISALLOW_ACCESS_CONSOLE = "rbac.authorization.halo.run/disallow-access-console",
}

Expand Down
1 change: 0 additions & 1 deletion ui/src/locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,6 @@ core:
permissions: Permissions
fields:
display_name: Display name
redirect_on_login: Default redirect location after logging in
disallow_access_console:
label: Disable access to Console
help: Once checked, this role will not be able to access the Console
Expand Down
1 change: 0 additions & 1 deletion ui/src/locales/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@ core:
permissions: 权限
fields:
display_name: 名称
redirect_on_login: 登录之后默认跳转位置
disallow_access_console:
label: 禁止访问 Console
help: 勾选之后,该角色将无法访问 Console
Expand Down
1 change: 0 additions & 1 deletion ui/src/locales/zh-TW.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,6 @@ core:
permissions: 權限
fields:
display_name: 名稱
redirect_on_login: 登入之後預設跳轉位置
disallow_access_console:
label: 禁止訪問 Console
help: 勾選之後,該角色將無法存取 Console
Expand Down
Loading