Merge "Fix "Add Association" and "Delete Association" displaying"
This commit is contained in:
commit
59e6cc2531
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user