mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
Replace findProperty
and filterProperty
with findBy
and filterBy
This commit is contained in:
@ -9,7 +9,7 @@ export default Ember.Controller.extend({
|
||||
@computed('embedding.embeddable_hosts.@each.isCreated')
|
||||
showSecondary() {
|
||||
const hosts = this.get('embedding.embeddable_hosts');
|
||||
return hosts.length && hosts.findProperty('isCreated');
|
||||
return hosts.length && hosts.findBy('isCreated');
|
||||
},
|
||||
|
||||
@computed('embedding.base_url')
|
||||
|
Reference in New Issue
Block a user