From ec0b4bbf5b6783f0e8f6e06cd42238174ada3862 Mon Sep 17 00:00:00 2001 From: Tatiana Mazur Date: Fri, 16 Aug 2013 11:58:13 +0400 Subject: [PATCH] Fix "Add Association" and "Delete Association" displaying This patch adds "ajax-modal" class to LBaaS "Add Health Monitor" and "Delete Health Monitor" links. So these links open pop-up windows with "Cancel" and "Add"/"Delete" buttons. Fixes bug 1212978 Change-Id: Ie5a02ca07a9ee09abbbfd0b32db5141069e4adbe --- openstack_dashboard/dashboards/project/loadbalancers/tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tables.py b/openstack_dashboard/dashboards/project/loadbalancers/tables.py index f53cbf351b..d9a3c61267 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tables.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tables.py @@ -159,6 +159,7 @@ class AddPMAssociationLink(tables.LinkAction): name = "addassociation" verbose_name = _("Add Health Monitor") url = "horizon:project:loadbalancers:addassociation" + classes = ("ajax-modal", "btn-create",) def allowed(self, request, datum=None): try: @@ -176,7 +177,7 @@ class DeletePMAssociationLink(tables.LinkAction): name = "deleteassociation" verbose_name = _("Delete Health Monitor") url = "horizon:project:loadbalancers:deleteassociation" - classes = ("btn-delete", "btn-danger") + classes = ("ajax-modal", "btn-delete", "btn-danger") def allowed(self, request, datum=None): if datum and not datum['health_monitors']: