fix(web): new template condition

This commit is contained in:
Denis Gukov 2024-04-27 14:50:00 +05:00
parent 2ec299cec2
commit c74fac3cb4

View File

@ -63,7 +63,7 @@
color="primary" color="primary"
class="mr-1 pr-2" class="mr-1 pr-2"
v-if="can(USER_PERMISSIONS.manageProjectResources)" v-if="can(USER_PERMISSIONS.manageProjectResources)"
@click="editItem('new'); itemApp = '';" @click="templateApps.length > 0 || editItem('new')"
> >
{{ $t('newTemplate') }} {{ $t('newTemplate') }}
<v-icon v-if="templateApps.length > 0">mdi-chevron-down</v-icon> <v-icon v-if="templateApps.length > 0">mdi-chevron-down</v-icon>