Skip to content

Commit

Permalink
perf: Web,ChatGPT资产测试可连接性按钮禁用
Browse files Browse the repository at this point in the history
  • Loading branch information
w940853815 authored and ibuler committed Mar 28, 2024
1 parent 720dee5 commit 28062f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/Apps/AccountListTable/AccountList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ export default {
type: 'primary',
fa: 'fa-handshake-o',
can: ({ selectedRows }) => {
return selectedRows.length > 0 && selectedRows[0].asset.type.value !== 'clickhouse' &&
selectedRows[0].asset.type.value !== 'redis'
return selectedRows.length > 0 &&
['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(selectedRows[0].asset.type.value) === -1
},
callback: function({ selectedRows }) {
const ids = selectedRows.map(v => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/assets/Asset/AssetDetail/Account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
attrs: {
type: 'primary',
label: this.$tc('accounts.Test'),
disabled: this.object.type.value === 'clickhouse' || this.object.type.value === 'redis'
disabled: ['clickhouse', 'redis', 'website', 'chatgpt'].indexOf(this.object.type.value) !== -1
},
callbacks: Object.freeze({
click: () => {
Expand Down

0 comments on commit 28062f5

Please sign in to comment.