[ISSUE #3592] Fix incorrect prompt when accessing the restricted namespace (#3603)

* Fix incorrect prompt when accessing the restricted namespace

* Modify variable name
This commit is contained in:
ljhrot 2020-08-14 17:07:13 +08:00 committed by GitHub
parent 526e2bc130
commit c7251a144a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 4 deletions

View File

@ -309,6 +309,7 @@ const I18N_CONF = {
cloneSuccEnd: 'configuration items cloned',
cloneFail: 'Clone failed',
getNamespaceFailed: 'get the namespace failed',
getNamespace403: 'Without permission to access ${namespaceName} namespace!',
startCloning: 'Start Clone',
cloningConfiguration: 'Clone config',
source: 'Source :',
@ -322,6 +323,7 @@ const I18N_CONF = {
delSelectedAlertContent: 'please select the configuration to delete',
delSuccessMsg: 'delete successful',
cloneEditableTitle: 'Modify Data Id and Group (optional)',
authFail: 'Auth failed',
},
NewConfig: {
newListingMain: 'Create Configuration',

View File

@ -307,6 +307,7 @@ const I18N_CONF = {
cloneSuccEnd: '项配置',
cloneFail: '克隆失败',
getNamespaceFailed: '获取命名空间失败',
getNamespace403: '没有 ${namespaceName} 命名空间的访问权限',
startCloning: '开始克隆',
cloningConfiguration: '克隆配置',
source: '源空间',
@ -320,6 +321,7 @@ const I18N_CONF = {
delSelectedAlertContent: '请选择要删除的配置',
delSuccessMsg: '删除成功',
cloneEditableTitle: '修改 Data Id Group (可选操作)',
authFail: '权限认证失败',
},
NewConfig: {
newListingMain: '新建配置',

View File

@ -292,8 +292,11 @@ class ConfigurationManagement extends React.Component {
});
if (res && [401, 403].includes(res.status)) {
Dialog.alert({
title: locale.importFail,
content: locale.importFail403,
title: locale.authFail,
content: locale.getNamespace403.replace(
'${namespaceName}',
this.state.nownamespace_name
),
});
}
});

File diff suppressed because one or more lines are too long