Replace findProperty and filterProperty with findBy and filterBy
This commit is contained in:
@@ -5,7 +5,7 @@ export default Ember.Component.extend({
|
||||
|
||||
@computed('user.role')
|
||||
roleName(role) {
|
||||
return this.get('roles').findProperty('id', role).label;
|
||||
return this.get('roles').findBy('id', role).label;
|
||||
},
|
||||
|
||||
actions: {
|
||||
|
||||
@@ -48,7 +48,7 @@ export default Ember.Component.extend({
|
||||
}
|
||||
|
||||
const users = this.get('users');
|
||||
if (users.findProperty('email', user.email)) {
|
||||
if (users.findBy('email', user.email)) {
|
||||
return this.set('invalid', true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user