mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:28:58 +08:00
Use Em.computed.match.
This commit is contained in:
parent
41ecba1b77
commit
cd766ed587
@ -9,7 +9,5 @@ export default Ember.Component.extend({
|
||||
return this.get('count') && this.get('count') > 1;
|
||||
}.property('count'),
|
||||
|
||||
isIcon: function() {
|
||||
return this.get('badge.icon').match(/^fa-/);
|
||||
}.property('badge.icon')
|
||||
isIcon: Em.computed.match('badge.icon', /^fa-/)
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user