* Fix incorrect prompt when accessing the restricted namespace * Modify variable name
This commit is contained in:
parent
526e2bc130
commit
c7251a144a
@ -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',
|
||||
|
@ -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: '新建配置',
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user