* 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',
|
cloneSuccEnd: 'configuration items cloned',
|
||||||
cloneFail: 'Clone failed',
|
cloneFail: 'Clone failed',
|
||||||
getNamespaceFailed: 'get the namespace failed',
|
getNamespaceFailed: 'get the namespace failed',
|
||||||
|
getNamespace403: 'Without permission to access ${namespaceName} namespace!',
|
||||||
startCloning: 'Start Clone',
|
startCloning: 'Start Clone',
|
||||||
cloningConfiguration: 'Clone config',
|
cloningConfiguration: 'Clone config',
|
||||||
source: 'Source :',
|
source: 'Source :',
|
||||||
@ -322,6 +323,7 @@ const I18N_CONF = {
|
|||||||
delSelectedAlertContent: 'please select the configuration to delete',
|
delSelectedAlertContent: 'please select the configuration to delete',
|
||||||
delSuccessMsg: 'delete successful',
|
delSuccessMsg: 'delete successful',
|
||||||
cloneEditableTitle: 'Modify Data Id and Group (optional)',
|
cloneEditableTitle: 'Modify Data Id and Group (optional)',
|
||||||
|
authFail: 'Auth failed',
|
||||||
},
|
},
|
||||||
NewConfig: {
|
NewConfig: {
|
||||||
newListingMain: 'Create Configuration',
|
newListingMain: 'Create Configuration',
|
||||||
|
@ -307,6 +307,7 @@ const I18N_CONF = {
|
|||||||
cloneSuccEnd: '项配置',
|
cloneSuccEnd: '项配置',
|
||||||
cloneFail: '克隆失败',
|
cloneFail: '克隆失败',
|
||||||
getNamespaceFailed: '获取命名空间失败',
|
getNamespaceFailed: '获取命名空间失败',
|
||||||
|
getNamespace403: '没有 ${namespaceName} 命名空间的访问权限!',
|
||||||
startCloning: '开始克隆',
|
startCloning: '开始克隆',
|
||||||
cloningConfiguration: '克隆配置',
|
cloningConfiguration: '克隆配置',
|
||||||
source: '源空间:',
|
source: '源空间:',
|
||||||
@ -320,6 +321,7 @@ const I18N_CONF = {
|
|||||||
delSelectedAlertContent: '请选择要删除的配置',
|
delSelectedAlertContent: '请选择要删除的配置',
|
||||||
delSuccessMsg: '删除成功',
|
delSuccessMsg: '删除成功',
|
||||||
cloneEditableTitle: '修改 Data Id 和 Group (可选操作)',
|
cloneEditableTitle: '修改 Data Id 和 Group (可选操作)',
|
||||||
|
authFail: '权限认证失败',
|
||||||
},
|
},
|
||||||
NewConfig: {
|
NewConfig: {
|
||||||
newListingMain: '新建配置',
|
newListingMain: '新建配置',
|
||||||
|
@ -292,8 +292,11 @@ class ConfigurationManagement extends React.Component {
|
|||||||
});
|
});
|
||||||
if (res && [401, 403].includes(res.status)) {
|
if (res && [401, 403].includes(res.status)) {
|
||||||
Dialog.alert({
|
Dialog.alert({
|
||||||
title: locale.importFail,
|
title: locale.authFail,
|
||||||
content: locale.importFail403,
|
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