From f4f1a40884eb925e1ea26aedfc7b938cb2b39232 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Thu, 14 Oct 2021 15:01:48 +0800 Subject: [PATCH] fix: Add tips for application credential roles Add tips for application credential roles Change-Id: I25c0d3b58ddfe41dae9464a8b9fc7133b33d8284 --- src/locales/en.json | 1 + src/locales/zh.json | 1 + src/pages/user-center/containers/Credentials/actions/Create.jsx | 1 + 3 files changed, 3 insertions(+) diff --git a/src/locales/en.json b/src/locales/en.json index 9c0eb102..925b4f88 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -765,6 +765,7 @@ "If an instance is using this flavor, deleting it will cause the instance's flavor data to be missing. Are you sure to delete {name}?": "If an instance is using this flavor, deleting it will cause the instance's flavor data to be missing. Are you sure to delete {name}?", "If checked, the network will be enable.": "If checked, the network will be enable.", "If no gateway is specified, the first IP address will be defaulted.": "If no gateway is specified, the first IP address will be defaulted.", + "If not provided, the roles assigned to the application credential will be the same as the roles in the current token.": "If not provided, the roles assigned to the application credential will be the same as the roles in the current token.", "If nova-compute on the host is disabled, it will be forbidden to be selected as the target host.": "If nova-compute on the host is disabled, it will be forbidden to be selected as the target host.", "If the capacity of the disk is large,the type modify operation may takes several hours. Please be cautious.": "If the capacity of the disk is large,the type modify operation may takes several hours. Please be cautious.", "If the volume associated with the snapshot has changed the volume type, please modify this option manually; if the volume associated with the snapshot keeps the volume type unchanged, please ignore this option. (no need to change).": "If the volume associated with the snapshot has changed the volume type, please modify this option manually; if the volume associated with the snapshot keeps the volume type unchanged, please ignore this option. (no need to change).", diff --git a/src/locales/zh.json b/src/locales/zh.json index 7d984e46..dc5ecf8d 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -765,6 +765,7 @@ "If an instance is using this flavor, deleting it will cause the instance's flavor data to be missing. Are you sure to delete {name}?": "若有云主机正在使用此 flavor,删除会导致云主机的 flavor 数据缺失,确定删除 {name} ?", "If checked, the network will be enable.": "如果选中,那么网络将被启用。", "If no gateway is specified, the first IP address will be defaulted.": "如果不指定网关IP,默认是第一个地址。", + "If not provided, the roles assigned to the application credential will be the same as the roles in the current token.": "如果不选择,那么分配给应用凭证的角色将与当前用户的角色相同。", "If nova-compute on the host is disabled, it will be forbidden to be selected as the target host.": "如果计算节点上的nova-compute被禁用,将禁止其作为目标节点。", "If the capacity of the disk is large,the type modify operation may takes several hours. Please be cautious.": "如果云硬盘容量较大,修改云硬盘类型可能需要花费几个小时,请您谨慎操作。", "If the volume associated with the snapshot has changed the volume type, please modify this option manually; if the volume associated with the snapshot keeps the volume type unchanged, please ignore this option. (no need to change).": "若快照关联的云硬盘修改过云硬盘类型,请手动修改此选项;若快照关联的云硬盘保持云硬盘类型不变,请忽略此选项(不需要做变更)。", diff --git a/src/pages/user-center/containers/Credentials/actions/Create.jsx b/src/pages/user-center/containers/Credentials/actions/Create.jsx index 8a178333..32b7855a 100644 --- a/src/pages/user-center/containers/Credentials/actions/Create.jsx +++ b/src/pages/user-center/containers/Credentials/actions/Create.jsx @@ -100,6 +100,7 @@ export class Create extends ModalAction { label: t('Roles'), type: 'check-group', options: this.roleOptions, + extra: t('If not provided, the roles assigned to the application credential will be the same as the roles in the current token.'), span: 12, }, {