Skip to content

Commit

Permalink
refactor: remove redirect-on-login setting option from role editing f…
Browse files Browse the repository at this point in the history
…orm (#6776)

#### What type of PR is this?

/area ui
/kind api-change
/milestone 2.20.x

#### What this PR does / why we need it:

See #6774 

#### Which issue(s) this PR fixes:

Fixes #6774 

#### Does this PR introduce a user-facing change?

```release-note
移除角色的 **登录之后默认跳转位置** 设置选项。
```
  • Loading branch information
ruibaby authored Oct 7, 2024
1 parent b0ad040 commit d648928
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
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

0 comments on commit d648928

Please sign in to comment.