mirror of https://github.com/halo-dev/halo
refactor: remove redirect-on-login setting option from role editing form (#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 移除角色的 **登录之后默认跳转位置** 设置选项。 ```pull/6771/head^2
parent
b0ad0406b9
commit
d6489283b8
|
@ -118,15 +118,6 @@ const handleCreateOrUpdateRole = async () => {
|
||||||
type="text"
|
type="text"
|
||||||
validation="required|length:0,50"
|
validation="required|length:0,50"
|
||||||
></FormKit>
|
></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
|
<FormKit
|
||||||
v-model="
|
v-model="
|
||||||
formState.metadata.annotations[
|
formState.metadata.annotations[
|
||||||
|
|
|
@ -11,7 +11,6 @@ export enum rbacAnnotations {
|
||||||
DEPENDENCIES = "rbac.authorization.halo.run/dependencies",
|
DEPENDENCIES = "rbac.authorization.halo.run/dependencies",
|
||||||
AVATAR_ATTACHMENT_NAME = "halo.run/avatar-attachment-name",
|
AVATAR_ATTACHMENT_NAME = "halo.run/avatar-attachment-name",
|
||||||
LAST_AVATAR_ATTACHMENT_NAME = "halo.run/last-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",
|
DISALLOW_ACCESS_CONSOLE = "rbac.authorization.halo.run/disallow-access-console",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1074,7 +1074,6 @@ core:
|
||||||
permissions: Permissions
|
permissions: Permissions
|
||||||
fields:
|
fields:
|
||||||
display_name: Display name
|
display_name: Display name
|
||||||
redirect_on_login: Default redirect location after logging in
|
|
||||||
disallow_access_console:
|
disallow_access_console:
|
||||||
label: Disable access to Console
|
label: Disable access to Console
|
||||||
help: Once checked, this role will not be able to access the Console
|
help: Once checked, this role will not be able to access the Console
|
||||||
|
|
|
@ -1001,7 +1001,6 @@ core:
|
||||||
permissions: 权限
|
permissions: 权限
|
||||||
fields:
|
fields:
|
||||||
display_name: 名称
|
display_name: 名称
|
||||||
redirect_on_login: 登录之后默认跳转位置
|
|
||||||
disallow_access_console:
|
disallow_access_console:
|
||||||
label: 禁止访问 Console
|
label: 禁止访问 Console
|
||||||
help: 勾选之后,该角色将无法访问 Console
|
help: 勾选之后,该角色将无法访问 Console
|
||||||
|
|
|
@ -981,7 +981,6 @@ core:
|
||||||
permissions: 權限
|
permissions: 權限
|
||||||
fields:
|
fields:
|
||||||
display_name: 名稱
|
display_name: 名稱
|
||||||
redirect_on_login: 登入之後預設跳轉位置
|
|
||||||
disallow_access_console:
|
disallow_access_console:
|
||||||
label: 禁止訪問 Console
|
label: 禁止訪問 Console
|
||||||
help: 勾選之後,該角色將無法存取 Console
|
help: 勾選之後,該角色將無法存取 Console
|
||||||
|
|
Loading…
Reference in New Issue