mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-02 07:25:33 +00:00
perf: 全局组织禁用资产的测试可连接性
This commit is contained in:
@@ -356,7 +356,8 @@ export default {
|
|||||||
fa: 'fa-handshake-o',
|
fa: 'fa-handshake-o',
|
||||||
can: ({ selectedRows }) => {
|
can: ({ selectedRows }) => {
|
||||||
return selectedRows.length > 0 &&
|
return selectedRows.length > 0 &&
|
||||||
['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1
|
['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1 &&
|
||||||
|
!this.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callback: function({ selectedRows }) {
|
callback: function({ selectedRows }) {
|
||||||
const ids = selectedRows.map(v => {
|
const ids = selectedRows.map(v => {
|
||||||
|
@@ -77,7 +77,8 @@ export default {
|
|||||||
attrs: {
|
attrs: {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
label: this.$tc('accounts.Test'),
|
label: this.$tc('accounts.Test'),
|
||||||
disabled: ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(this.object.type.value) !== -1
|
disabled: ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(this.object.type.value) !== -1 ||
|
||||||
|
this.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callbacks: Object.freeze({
|
callbacks: Object.freeze({
|
||||||
click: () => {
|
click: () => {
|
||||||
|
Reference in New Issue
Block a user