This is an automated email from the ASF dual-hosted git repository.
shwstppr 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 e199678101e ui: fix bulk delete template from zones (#8118)
e199678101e is described below
commit e199678101e0d8b55ae4e2f5266aaf9ddb403fbe
Author: Abhishek Kumar <[email protected]>
AuthorDate: Fri Oct 20 10:36:20 2023 +0530
ui: fix bulk delete template from zones (#8118)
Fixes #8083
Signed-off-by: Abhishek Kumar <[email protected]>
---
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 edef387e2be..b189bcffcc2 100644
--- a/ui/src/views/image/TemplateZones.vue
+++ b/ui/src/views/image/TemplateZones.vue
@@ -181,7 +181,7 @@
</a-form-item>
<div :span="24" class="action-button">
<a-button @click="onCloseModal">{{ $t('label.cancel') }}</a-button>
- <a-button type="primary" ref="submit" @click="deleteTemplate">{{
$t('label.ok') }}</a-button>
+ <a-button type="primary" ref="submit" @click="selectedItems.length
> 0 ? deleteTemplates() : deleteTemplate(currentRecord)">{{ $t('label.ok')
}}</a-button>
</div>
</a-spin>
</div>