Merge "Show confirm window before instance delete."

This commit is contained in:
Jenkins 2016-08-24 16:41:25 +00:00 committed by Gerrit Code Review
commit 7883ad2641

View File

@ -36,7 +36,7 @@ from trove_dashboard.content.database_backups \
ACTIVE_STATES = ("ACTIVE",)
class DeleteInstance(tables.BatchAction):
class DeleteInstance(tables.DeleteAction):
help_text = _("Deleted instances are not recoverable.")
@staticmethod
@ -59,7 +59,7 @@ class DeleteInstance(tables.BatchAction):
classes = ("btn-danger", )
icon = "remove"
def action(self, request, obj_id):
def delete(self, request, obj_id):
api.trove.instance_delete(request, obj_id)