19 lines
360 B
JavaScript
19 lines
360 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Component.extend({
|
|
isAdmin: Ember.computed('currentUser', function() {
|
|
return this.get('currentUser.role') == 'A';
|
|
}),
|
|
|
|
roles: Ember.String.w('A R W'),
|
|
|
|
actions: {
|
|
save: function() {
|
|
this.sendAction('save');
|
|
},
|
|
|
|
cancel: function() {
|
|
this.sendAction('cancel');
|
|
},
|
|
}
|
|
});
|