Merge "Fix "Add Association" and "Delete Association" displaying"

This commit is contained in:
Jenkins 2013-08-21 09:24:37 +00:00 committed by Gerrit Code Review
commit 59e6cc2531
1 changed files with 2 additions and 1 deletions

View File

@ -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']: