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
This commit is contained in:
Cindy Lu 2014-07-29 17:22:23 -07:00
parent 0a5cd93293
commit 296520051c
1 changed files with 2 additions and 7 deletions

View File

@ -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):