WIP (checkbox)
This commit is contained in:
parent
406a33ccdb
commit
16d77dead7
3 changed files with 35 additions and 11 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue