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-muted': 'times-circle',
|
||||||
'd-regular': 'circle-o',
|
'd-regular': 'circle-o',
|
||||||
'd-watching': 'exclamation-circle',
|
'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) {
|
export function renderIcon(renderType, id, params) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
@computed('expanded')
|
@computed('expanded')
|
||||||
expandIcon(expanded) {
|
expandIcon(expanded) {
|
||||||
return expanded ? 'caret-down' : 'caret-right';
|
return expanded ? 'd-drop-expanded' : 'd-drop-collapsed';
|
||||||
},
|
},
|
||||||
|
|
||||||
allCategoriesUrl: function() {
|
allCategoriesUrl: function() {
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
@computed('expanded')
|
@computed('expanded')
|
||||||
expandedIcon(expanded) {
|
expandedIcon(expanded) {
|
||||||
return expanded ? 'caret-down' : 'caret-right';
|
return expanded ? 'd-drop-expanded' : 'd-drop-collapsed';
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('tagId')
|
@computed('tagId')
|
||||||
|
|
Loading…
Reference in New Issue