dheeraj12347 commented on issue #12599:
URL: https://github.com/apache/cloudstack/issues/12599#issuecomment-3918928864

   I’ve implemented a first pass at a fix for the bulk delete 404 issue in 
TemplateZones.vue and wanted to confirm if I’m on the right track.
   Specifically:
   
   
   I left deleteTemplate and deleteTemplates as-is, since they already handle 
single and bulk delete flows (including the redirect to /template when deleting 
the last zone from the template details page).
   
   
   I added logic in handleCancel() (the callback from BulkActionProgress) to 
refresh the data and, if dataSource is empty after bulk delete, call 
this.$router.go(-1) so the user is not left on a 404 page when the 
template/zones are gone.
   
   
   I’ve tested:
   
   
   Single-zone delete from the template details page still redirects correctly 
to /template.
   
   
   Bulk delete from the Zones tab, then closing the bulk action modal, no 
longer results in a 404 when everything is deleted; the component now navigates 
back instead.
   
   
   Could you please confirm whether this approach aligns with what you had in 
mind, or if you’d prefer the navigation to happen in a different place (e.g. 
inside deleteTemplate / deleteTemplates or using a different route)?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to