mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 06:19:51 +00:00
Merge pull request #2775 from jumpserver/pr@dev@fix_assetlisttest
fix: 修复资产列表测试按钮添加 auto_info 选项
This commit is contained in:
@@ -139,7 +139,11 @@ export default {
|
||||
{
|
||||
name: 'Test',
|
||||
title: this.$t('common.Test'),
|
||||
can: this.$hasPerm('assets.test_assetconnectivity') && !this.$store.getters.currentOrgIsRoot,
|
||||
can: ({ row }) =>
|
||||
this.$hasPerm('assets.test_assetconnectivity') &&
|
||||
!this.$store.getters.currentOrgIsRoot &&
|
||||
row['auto_info'].ansible_enabled &&
|
||||
row['auto_info'].ping_enabled,
|
||||
callback: ({ row }) => {
|
||||
if (row.platform.name === 'Gateway') {
|
||||
this.GatewayVisible = true
|
||||
|
Reference in New Issue
Block a user