From b6b558d4ac8254ca7f18326ffa8373e04d6f576b Mon Sep 17 00:00:00 2001 From: "jing.liuqing" Date: Thu, 12 Feb 2015 17:00:38 +0800 Subject: [PATCH] Fix missing icon of `Terminate instance` The icon of `Terminate instance` is `fa-off` had replaced by `fa-power-off` in current xstatic-font-awesome package which version is 4.2.0. the other deletion icon is `fa-remove`, the patch use it as the `Terminate instance` icon. Closes-Bug: 1425820 Change-Id: I6ad66c97626527aa5ffc1b1a09353685391f9b61 --- openstack_dashboard/dashboards/project/databases/tables.py | 2 +- openstack_dashboard/dashboards/project/instances/tables.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/dashboards/project/databases/tables.py b/openstack_dashboard/dashboards/project/databases/tables.py index 19a551c657..6c2036cbf3 100644 --- a/openstack_dashboard/dashboards/project/databases/tables.py +++ b/openstack_dashboard/dashboards/project/databases/tables.py @@ -49,7 +49,7 @@ class TerminateInstance(tables.BatchAction): name = "terminate" classes = ("btn-danger", ) - icon = "off" + icon = "remove" def action(self, request, obj_id): api.trove.instance_delete(request, obj_id) diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py index a9bcba1bb8..dd90a7fbf8 100644 --- a/openstack_dashboard/dashboards/project/instances/tables.py +++ b/openstack_dashboard/dashboards/project/instances/tables.py @@ -81,7 +81,7 @@ def is_deleting(instance): class TerminateInstance(policy.PolicyTargetMixin, tables.BatchAction): name = "terminate" classes = ("btn-danger",) - icon = "off" + icon = "remove" policy_rules = (("compute", "compute:delete"),) @staticmethod