mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
feat: 支持设置默认存储(2)
This commit is contained in:
@@ -663,6 +663,7 @@
|
||||
"SiteMessageList": "站内信"
|
||||
},
|
||||
"sessions": {
|
||||
"SetToDefaultStorage": "设置为默认存储",
|
||||
"SetToDefault": "设为默认",
|
||||
"SetSuccess": "设置成功",
|
||||
"SetFailed": "设置失败",
|
||||
|
||||
@@ -661,6 +661,7 @@
|
||||
"SiteMessageList": "Site message"
|
||||
},
|
||||
"sessions": {
|
||||
"SetToDefaultStorage": "Set to default storage",
|
||||
"SetToDefault": "Set to default",
|
||||
"SetSuccess": "Set success",
|
||||
"SetFailed": "Set failed",
|
||||
|
||||
@@ -24,13 +24,16 @@ export default {
|
||||
|
||||
initial: { type: commandType, doc_type: 'command' },
|
||||
fields: [
|
||||
[this.$t('common.Basic'), ['name', 'type', 'meta', 'comment']]
|
||||
[this.$t('common.Basic'), ['name', 'type', 'meta', 'is_default', 'comment']]
|
||||
],
|
||||
fieldsMeta: {
|
||||
type: {
|
||||
type: 'select',
|
||||
disabled: true
|
||||
},
|
||||
is_default: {
|
||||
helpText: this.$t('sessions.SetToDefaultStorage')
|
||||
},
|
||||
meta: {
|
||||
fields: ['HOSTS', 'INDEX', 'IGNORE_VERIFY_CERTS'],
|
||||
fieldsMeta: {
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
fields: [
|
||||
[this.$t('common.Basic'), ['name', 'type']],
|
||||
[storageTypeMeta.title, ['meta']],
|
||||
[this.$t('common.Other'), ['comment']]
|
||||
[this.$t('common.Other'), ['is_default', 'comment']]
|
||||
],
|
||||
fieldsMeta: {
|
||||
type: {
|
||||
@@ -47,6 +47,9 @@ export default {
|
||||
},
|
||||
meta: {
|
||||
fields: storageTypeMeta.meta
|
||||
},
|
||||
is_default: {
|
||||
helpText: this.$t('sessions.SetToDefaultStorage')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user