mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
6cded7e010
commit
405ef82aef
@ -66,7 +66,7 @@
|
|||||||
@onClick="showCopyTemplate(record)" />
|
@onClick="showCopyTemplate(record)" />
|
||||||
<tooltip-button
|
<tooltip-button
|
||||||
style="margin-right: 5px"
|
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')"
|
:title="$t('label.action.delete.template')"
|
||||||
type="primary"
|
type="primary"
|
||||||
:danger="true"
|
:danger="true"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user