This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.18 by this push:
new 405ef82aefd UI: Fix hide delete button for templates that are in
Installing template state (#7882)
405ef82aefd is described below
commit 405ef82aefd5991ea8d0bf89081d7647b7ed9a89
Author: Nicolas Vazquez <[email protected]>
AuthorDate: Tue Aug 22 06:02:54 2023 -0300
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
---
ui/src/views/image/TemplateZones.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/views/image/TemplateZones.vue
b/ui/src/views/image/TemplateZones.vue
index a2f8834be6e..edef387e2be 100644
--- a/ui/src/views/image/TemplateZones.vue
+++ b/ui/src/views/image/TemplateZones.vue
@@ -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"