mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-24 13:54:50 +00:00
perf(setting): 优化安全设置中的,危险命令告警
This commit is contained in:
@@ -729,6 +729,7 @@
|
||||
}
|
||||
},
|
||||
"setting": {
|
||||
"InsecureCommandNotifyToSubscription": "危险命令通知已升级到消息订阅中,支持更多通知方式",
|
||||
"ApiKeyList": "API Key 列表",
|
||||
"AssetCount": "资产数量",
|
||||
"Basic": "基本设置",
|
||||
|
||||
@@ -727,6 +727,7 @@
|
||||
}
|
||||
},
|
||||
"setting": {
|
||||
"InsecureCommandNotifyToSubscription": "Insecure command notification setting, change to system message subscription, support more notify method",
|
||||
"ApiKeyList": "Api key list",
|
||||
"AssetCount": "Asset count",
|
||||
"Basic": "Basic setting",
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<script>
|
||||
import GenericCreateUpdateForm from '@/layout/components/GenericCreateUpdateForm'
|
||||
import { IBox } from '@/components'
|
||||
import { Link } from '@/components/FormFields'
|
||||
|
||||
export default {
|
||||
name: 'Security',
|
||||
@@ -46,20 +47,20 @@ export default {
|
||||
[
|
||||
this.$t('setting.InsecureCommandAlert'),
|
||||
[
|
||||
'SECURITY_INSECURE_COMMAND', 'SECURITY_INSECURE_COMMAND_EMAIL_RECEIVER'
|
||||
'SECURITY_INSECURE_COMMAND_EMAIL_RECEIVER'
|
||||
]
|
||||
]
|
||||
],
|
||||
fieldsMeta: {
|
||||
// 'SECURITY_INSECURE_COMMAND_EMAIL_RECEIVER': {
|
||||
// component: Link,
|
||||
// helpText: '',
|
||||
// label: this.$t('common.Receivers'),
|
||||
// el: {
|
||||
// href: '/ui/#/settings?activeTab=SystemMessageSubscription',
|
||||
// title: this.$t('setting.insecureCommandEmailUpdate')
|
||||
// }
|
||||
// }
|
||||
'SECURITY_INSECURE_COMMAND_EMAIL_RECEIVER': {
|
||||
component: Link,
|
||||
helpText: this.$t('setting.InsecureCommandNotifyToSubscription'),
|
||||
label: this.$t('common.Receivers'),
|
||||
el: {
|
||||
href: '/ui/#/settings?activeTab=SystemMessageSubscription',
|
||||
title: this.$t('setting.insecureCommandEmailUpdate')
|
||||
}
|
||||
}
|
||||
},
|
||||
url: '/api/v1/settings/setting/?category=security'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user