mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
fix: SFTP对象存储,禁用设为默认存储
This commit is contained in:
parent
3269a2a3ff
commit
34406ec32d
@ -91,7 +91,7 @@ export default {
|
||||
{
|
||||
name: 'set_to_default',
|
||||
title: this.$t('sessions.SetToDefault'),
|
||||
can: this.$hasPerm('terminal.change_replaystorage'),
|
||||
can: (value) => this.$hasPerm('terminal.change_replaystorage') && value.row.type.value !== 'sftp',
|
||||
type: 'primary',
|
||||
callback: function({ row, col, cellValue, reload }) {
|
||||
SetToDefaultReplayStorage(row.id).then(data => {
|
||||
|
@ -63,7 +63,8 @@ export default {
|
||||
}
|
||||
},
|
||||
is_default: {
|
||||
helpText: this.$t('sessions.SetToDefaultStorage')
|
||||
helpText: this.$t('sessions.SetToDefaultStorage'),
|
||||
hidden: (formValue) => formValue.type === 'sftp'
|
||||
}
|
||||
},
|
||||
cleanFormValue(values) {
|
||||
|
Loading…
Reference in New Issue
Block a user