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"
|
name = "addassociation"
|
||||||
verbose_name = _("Add Health Monitor")
|
verbose_name = _("Add Health Monitor")
|
||||||
url = "horizon:project:loadbalancers:addassociation"
|
url = "horizon:project:loadbalancers:addassociation"
|
||||||
|
classes = ("ajax-modal", "btn-create",)
|
||||||
|
|
||||||
def allowed(self, request, datum=None):
|
def allowed(self, request, datum=None):
|
||||||
try:
|
try:
|
||||||
@ -176,7 +177,7 @@ class DeletePMAssociationLink(tables.LinkAction):
|
|||||||
name = "deleteassociation"
|
name = "deleteassociation"
|
||||||
verbose_name = _("Delete Health Monitor")
|
verbose_name = _("Delete Health Monitor")
|
||||||
url = "horizon:project:loadbalancers:deleteassociation"
|
url = "horizon:project:loadbalancers:deleteassociation"
|
||||||
classes = ("btn-delete", "btn-danger")
|
classes = ("ajax-modal", "btn-delete", "btn-danger")
|
||||||
|
|
||||||
def allowed(self, request, datum=None):
|
def allowed(self, request, datum=None):
|
||||||
if datum and not datum['health_monitors']:
|
if datum and not datum['health_monitors']:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user