From 296520051c6d9f13482630159bcac02aa5b3b83d Mon Sep 17 00:00:00 2001 From: Cindy Lu Date: Tue, 29 Jul 2014 17:22:23 -0700 Subject: [PATCH] Delete Stacks button doesn't work Clicking on causes a frozen grey overlay. It should have the class 'btn-danger' and remove the 'ajax-modal' class. Change-Id: I892f7cc550cb1c332fa37fd08022b4d252918619 Closes-Bug: #1350112 --- openstack_dashboard/dashboards/project/stacks/tables.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/openstack_dashboard/dashboards/project/stacks/tables.py b/openstack_dashboard/dashboards/project/stacks/tables.py index 7d624384b9..b8259f2409 100644 --- a/openstack_dashboard/dashboards/project/stacks/tables.py +++ b/openstack_dashboard/dashboards/project/stacks/tables.py @@ -46,17 +46,12 @@ class ChangeStackTemplate(tables.LinkAction): return urlresolvers.reverse(self.url, args=[stack.id]) -class DeleteStack(tables.BatchAction): - name = "delete" - action_present = _("Delete") - action_past = _("Scheduled deletion of %(data_type)s") +class DeleteStack(tables.DeleteAction): data_type_singular = _("Stack") data_type_plural = _("Stacks") - classes = ("ajax-modal",) - icon = "remove" policy_rules = (("orchestration", "cloudformation:DeleteStack"),) - def action(self, request, stack_id): + def delete(self, request, stack_id): api.heat.stack_delete(request, stack_id) def allowed(self, request, stack):