UI: Fix hide delete button for templates that are in Installing template state (#7882)

This PR hides the Delete Template button when a template is installing

Fixes: #7865
This commit is contained in:
Nicolas Vazquez 2023-08-22 06:02:54 -03:00 committed by GitHub
parent 6cded7e010
commit 405ef82aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@
@onClick="showCopyTemplate(record)" />
<tooltip-button
style="margin-right: 5px"
:disabled="!('deleteTemplate' in $store.getters.apis)"
:disabled="!('deleteTemplate' in $store.getters.apis) || record.status.startsWith('Installing')"
:title="$t('label.action.delete.template')"
type="primary"
:danger="true"