Skip to content

Commit 405ef82

Browse files
authored
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
1 parent 6cded7e commit 405ef82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/views/image/TemplateZones.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
@onClick="showCopyTemplate(record)" />
6767
<tooltip-button
6868
style="margin-right: 5px"
69-
:disabled="!('deleteTemplate' in $store.getters.apis)"
69+
:disabled="!('deleteTemplate' in $store.getters.apis) || record.status.startsWith('Installing')"
7070
:title="$t('label.action.delete.template')"
7171
type="primary"
7272
:danger="true"

0 commit comments

Comments
 (0)