mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Allow for customization of header dropdown icons
This commit is contained in:
parent
8e88bf019f
commit
0ba789de17
@ -6,7 +6,9 @@ const REPLACEMENTS = {
|
||||
'd-muted': 'times-circle',
|
||||
'd-regular': 'circle-o',
|
||||
'd-watching': 'exclamation-circle',
|
||||
'd-watching-first': 'dot-circle-o'
|
||||
'd-watching-first': 'dot-circle-o',
|
||||
'd-drop-expanded': 'caret-down',
|
||||
'd-drop-collapsed': 'caret-right',
|
||||
};
|
||||
|
||||
export function renderIcon(renderType, id, params) {
|
||||
|
@ -12,7 +12,7 @@ export default Ember.Component.extend({
|
||||
|
||||
@computed('expanded')
|
||||
expandIcon(expanded) {
|
||||
return expanded ? 'caret-down' : 'caret-right';
|
||||
return expanded ? 'd-drop-expanded' : 'd-drop-collapsed';
|
||||
},
|
||||
|
||||
allCategoriesUrl: function() {
|
||||
|
@ -22,7 +22,7 @@ export default Ember.Component.extend({
|
||||
|
||||
@computed('expanded')
|
||||
expandedIcon(expanded) {
|
||||
return expanded ? 'caret-down' : 'caret-right';
|
||||
return expanded ? 'd-drop-expanded' : 'd-drop-collapsed';
|
||||
},
|
||||
|
||||
@computed('tagId')
|
||||
|
Loading…
Reference in New Issue
Block a user