From fcd93678d1f6c3348d9013fc3fc01a2e537e6bd1 Mon Sep 17 00:00:00 2001 From: Masaki Matsushita Date: Thu, 11 Aug 2016 16:14:47 +0900 Subject: [PATCH] Show confirm window before instance delete. This change makes a confirm window appear before DB instance delete. Change-Id: Ida707b1a0e484132dc875138a21931d17831c4e5 Closes-Bug: #1612096 --- trove_dashboard/content/databases/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trove_dashboard/content/databases/tables.py b/trove_dashboard/content/databases/tables.py index d08fe70..798bb40 100644 --- a/trove_dashboard/content/databases/tables.py +++ b/trove_dashboard/content/databases/tables.py @@ -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)