Convert rest of SPRITE_STATUS to FontAwesome
Summary: Updates policy, headers, typeaheads to FA over policy icons Need advice - can't seem to place where icons come from on Typeahead? Wrong icons and wrong colors.... it is late Test Plan: - grepped for SPRITE_STATUS - grepped for sprite-status - grepped for setStatus for headers - grepped individual icons names Browsed numerous places, checked new dropdowns, see pudgy people. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T4739 Differential Revision: https://secure.phabricator.com/D9179
This commit is contained in:
@@ -12,7 +12,6 @@ JX.install('PHUIXActionView', {
|
||||
_node: null,
|
||||
_name: null,
|
||||
_icon: 'none',
|
||||
_iconSheet: 'icons',
|
||||
_disabled: false,
|
||||
_handler: null,
|
||||
_selected: false,
|
||||
@@ -54,9 +53,8 @@ JX.install('PHUIXActionView', {
|
||||
return this;
|
||||
},
|
||||
|
||||
setIcon: function(icon, sheet) {
|
||||
setIcon: function(icon) {
|
||||
this._icon = icon;
|
||||
this._iconSheet = sheet || this._iconSheet;
|
||||
this._buildIconNode(true);
|
||||
return this;
|
||||
},
|
||||
@@ -90,14 +88,14 @@ JX.install('PHUIXActionView', {
|
||||
className: [
|
||||
'phui-icon-view',
|
||||
'phabricator-action-view-icon',
|
||||
'sprite-' + this._iconSheet
|
||||
'phui-font-fa'
|
||||
].join(' ')
|
||||
};
|
||||
var node = JX.$N('span', attr);
|
||||
|
||||
var icon_class = this._iconSheet + '-' + this._icon;
|
||||
var icon_class = this._icon;
|
||||
if (this._disabled) {
|
||||
icon_class = icon_class + '-grey';
|
||||
icon_class = icon_class + ' grey';
|
||||
}
|
||||
|
||||
JX.DOM.alterClass(node, icon_class, true);
|
||||
|
||||
Reference in New Issue
Block a user