Allow for customization of header dropdown icons

This commit is contained in:
Robin Ward 2017-09-07 11:18:59 -04:00
parent 8e88bf019f
commit 0ba789de17
3 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -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() {

View File

@ -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')