diff --git a/src/views/settings/Storage/ReplayStorage.vue b/src/views/settings/Storage/ReplayStorage.vue index 5c5fdfe71..dd9789e2b 100644 --- a/src/views/settings/Storage/ReplayStorage.vue +++ b/src/views/settings/Storage/ReplayStorage.vue @@ -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 => { diff --git a/src/views/settings/Storage/ReplayStorageCreateUpdate.vue b/src/views/settings/Storage/ReplayStorageCreateUpdate.vue index 1cd220bf6..7d5074118 100644 --- a/src/views/settings/Storage/ReplayStorageCreateUpdate.vue +++ b/src/views/settings/Storage/ReplayStorageCreateUpdate.vue @@ -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) {