minor cleanup

This commit is contained in:
Matthew Dillon 2015-10-04 15:54:02 -07:00
parent 33ed70caaf
commit 5be2888223
4 changed files with 3 additions and 3 deletions

View file

@ -5,6 +5,7 @@ export default DS.Model.extend({
password : DS.attr('string'), password : DS.attr('string'),
name : DS.attr('string'), name : DS.attr('string'),
role : DS.attr('string'), role : DS.attr('string'),
canEdit : DS.attr('boolean'),
createdAt: DS.attr('date'), createdAt: DS.attr('date'),
updatedAt: DS.attr('date'), updatedAt: DS.attr('date'),
deletedAt: DS.attr('date'), deletedAt: DS.attr('date'),

View file

@ -1,5 +1,4 @@
import DS from 'ember-data'; import DS from 'ember-data';
import Ember from 'ember';
export default DS.RESTAdapter.extend({ export default DS.RESTAdapter.extend({
namespace: function() { namespace: function() {

View file

@ -18,7 +18,7 @@ export default Ember.Component.extend({
addCharacteristic: function() { addCharacteristic: function() {
const c = this.store.createRecord('characteristic', { const c = this.store.createRecord('characteristic', {
sortOrder: -999 sortOrder: -999
}) });
const m = this.store.createRecord('measurement', { const m = this.store.createRecord('measurement', {
characteristic: c characteristic: c
}); });

View file

@ -43,7 +43,7 @@
{{/link-to}} {{/link-to}}
{{#if model.canEdit}} {{#if model.canEdit}}
<br> <br>
{{#link-to 'protected.user.edit' model.id class="button-gray smaller"}} {{#link-to 'protected.users.edit' model.id class="button-gray smaller"}}
Edit Edit
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}