refactored users/show

This commit is contained in:
Matthew Dillon 2015-11-05 20:24:07 -07:00
parent e6510992dc
commit b742ddbb51
5 changed files with 84 additions and 64 deletions

View 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');
}),
});