mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
perf: Applets drop account template
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
{{ $t('Add') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="$hasLicense() || $route.name !== 'Applets'"
|
||||
:disabled="!$hasPerm('accounts.view_accounttemplate')"
|
||||
size="mini"
|
||||
type="success"
|
||||
@@ -98,6 +99,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
const accounts = this.value || []
|
||||
|
||||
return {
|
||||
accounts: accounts,
|
||||
drawerRefName: null,
|
||||
|
@@ -64,6 +64,7 @@ export default {
|
||||
{
|
||||
name: this.$t('AccountTemplate'),
|
||||
title: this.$t('AccountTemplate'),
|
||||
has: this.$hasLicense() || this.$route.name !== 'Applets',
|
||||
can: () => this.$hasPerm('accounts.view_accounttemplate') && !this.$store.getters.currentOrgIsRoot,
|
||||
callback: () => {
|
||||
this.templateDialogVisible = true
|
||||
|
Reference in New Issue
Block a user