Show confirm window before instance delete.
This change makes a confirm window appear before DB instance delete. Change-Id: Ida707b1a0e484132dc875138a21931d17831c4e5 Closes-Bug: #1612096
This commit is contained in:
parent
0021c6fafa
commit
fcd93678d1
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user