WIP (checkbox)

This commit is contained in:
Matthew Ryan Dillon 2015-11-03 15:48:35 -07:00
parent 406a33ccdb
commit 16d77dead7
3 changed files with 35 additions and 11 deletions

View file

@ -7,10 +7,12 @@ export default Mixin.create({
fallbackRoute: null,
actions: {
save: function() {
save: function(properties) {
const model = this.get('model');
const fallbackRoute = this.get('fallbackRoute');
model.setProperties(properties);
if (model.get('hasDirtyAttributes')) {
model.save().then((model) => {
this.transitionToRoute(fallbackRoute, model);