changing-fa-icon-to-trash-icon

* changed icon from remove to trash

Change-Id: I40f00182fce9f0a416be0b1d3f8f820d84343768
Closes-Bug: #1454118
This commit is contained in:
Alexis Rivera 2016-03-07 16:01:08 -06:00
parent 25edfa6bcb
commit 48011297eb
5 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<action action-classes="'btn btn-danger'"
disabled="tCtrl.selected.length === 0"
item="tCtrl.selected">
<span class="fa fa-remove"></span>
<span class="fa fa-trash"></span>
$text$
</action>

View File

@ -1,4 +1,4 @@
<action action-classes="'$action-classes$'" item="$item$">
<span class="fa fa-remove"></span>
<span class="fa fa-trash"></span>
$text$
</action>

View File

@ -926,7 +926,7 @@ class DeleteAction(BatchAction):
self.action_present = kwargs.get('action_present', _("Delete"))
if not hasattr(self, "action_past"):
self.action_past = kwargs.get('action_past', _("Deleted"))
self.icon = "remove"
self.icon = "trash"
def action(self, request, obj_id):
"""Action entry point. Overrides base class' action method.

View File

@ -81,10 +81,9 @@ def is_deleting(instance):
return task_state.lower() == "deleting"
class DeleteInstance(policy.PolicyTargetMixin, tables.BatchAction):
class DeleteInstance(policy.PolicyTargetMixin, tables.DeleteAction):
name = "delete"
classes = ("btn-danger",)
icon = "remove"
policy_rules = (("compute", "compute:delete"),)
help_text = _("Deleted instances are not recoverable.")

View File

@ -281,7 +281,7 @@ class DeletePMAssociationLink(policy.PolicyTargetMixin,
verbose_name = _("Disassociate Monitor")
url = "horizon:project:loadbalancers:deleteassociation"
classes = ("ajax-modal", "btn-danger")
icon = "remove"
icon = "trash"
policy_rules = (("network", "delete_pool_health_monitor"),)
def allowed(self, request, datum=None):