Skip to content

Commit e199678

Browse files
authored
ui: fix bulk delete template from zones (#8118)
Fixes #8083 Signed-off-by: Abhishek Kumar <[email protected]>
1 parent a2ec1f3 commit e199678

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
@@ -181,7 +181,7 @@
181181
</a-form-item>
182182
<div :span="24" class="action-button">
183183
<a-button @click="onCloseModal">{{ $t('label.cancel') }}</a-button>
184-
<a-button type="primary" ref="submit" @click="deleteTemplate">{{ $t('label.ok') }}</a-button>
184+
<a-button type="primary" ref="submit" @click="selectedItems.length > 0 ? deleteTemplates() : deleteTemplate(currentRecord)">{{ $t('label.ok') }}</a-button>
185185
</div>
186186
</a-spin>
187187
</div>

0 commit comments

Comments
 (0)