Merge branch 'v4' of github.com:jumpserver/lina into v4

This commit is contained in:
ibuler
2024-06-24 16:21:52 +08:00
3 changed files with 33 additions and 5 deletions

View File

@@ -258,7 +258,7 @@ export default {
title: this.$t('Test'),
can: ({ row }) =>
!this.$store.getters.currentOrgIsRoot &&
this.$hasPerm('accounts.change_account') &&
this.$hasPerm('accounts.verify_account') &&
row.asset['auto_config'].ansible_enabled &&
row.asset['auto_config'].ping_enabled,
callback: ({ row }) => {

View File

@@ -131,7 +131,7 @@ export default {
},
methods: {
isDisabled(item) {
return item.edition.value === 'enterprise' && !this.hasValidLicense
return item.edition?.value === 'enterprise' && !this.hasValidLicense
},
capitalize(str) {
return str.charAt(0).toUpperCase() + str.slice(1)