fix: sftp会话详情禁用监控按钮

This commit is contained in:
wangruidong
2024-02-29 14:24:39 +08:00
committed by w940853815
parent 1c69c61432
commit 1ff65a2293
3 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,6 @@
<component
:is="iType"
v-model="action.attrs.model"
:disabled="action.disabled"
v-bind="action.attrs"
v-on="callbacks"
>

View File

@@ -76,9 +76,9 @@ export default {
title: this.$t('accounts.BulkVerify'),
attrs: {
type: 'primary',
label: this.$tc('accounts.Test')
label: this.$tc('accounts.Test'),
disabled: this.object.type.value === 'clickhouse' || this.object.type.value === 'redis'
},
disabled: this.object.type.value === 'clickhouse' || this.object.type.value === 'redis',
callbacks: Object.freeze({
click: () => {
this.$axios.post(

View File

@@ -61,7 +61,8 @@ export default {
attrs: {
type: 'primary',
label: this.$t('sessions.Monitor'),
disabled: !this.session['can_join'] || !vm.$hasPerm('terminal.monitor_session')
disabled: !this.session['can_join'] || !vm.$hasPerm('terminal.monitor_session') ||
vm.session.type.value === 'sftp'
},
callbacks: {
click: function() {