refactored users/show
This commit is contained in:
parent
e6510992dc
commit
b742ddbb51
5 changed files with 84 additions and 64 deletions
11
app/pods/protected/users/show/user-card/component.js
Normal file
11
app/pods/protected/users/show/user-card/component.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
const { Component, computed, inject: { service } } = Ember;
|
||||
|
||||
export default Component.extend({
|
||||
currentUser: service('session-account'),
|
||||
|
||||
isUser: computed('model.id', 'currentUser.account.id', function() {
|
||||
return this.get('model.id') === this.get('currentUser.account.id');
|
||||
}),
|
||||
});
|
Reference in a new issue