mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 22:44:13 +00:00
fix: sftp会话详情禁用监控按钮
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
<component
|
||||
:is="iType"
|
||||
v-model="action.attrs.model"
|
||||
:disabled="action.disabled"
|
||||
v-bind="action.attrs"
|
||||
v-on="callbacks"
|
||||
>
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user