Fixed watcher changes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-03-18 09:41:23 +01:00
parent f25c8bb644
commit 934e057a67
5 changed files with 20 additions and 15 deletions

View File

@ -12,9 +12,10 @@ class Controller extends Section {
onSubmit() { onSubmit() {
this.$.watcher.check(); this.$.watcher.check();
this.$.model.save().then(() => this.$.model.save().then(() => {
this.$.watcher.notifySaved() this.$.watcher.notifySaved();
); this.$.watcher.updateOriginalData();
});
} }
} }

View File

@ -4,9 +4,10 @@ import Section from 'salix/components/section';
export default class Controller extends Section { export default class Controller extends Section {
onSubmit() { onSubmit() {
this.$.watcher.check(); this.$.watcher.check();
this.$.model.save().then(() => this.$.model.save().then(() => {
this.$.watcher.notifySaved() this.$.watcher.notifySaved();
); this.$.watcher.updateOriginalData();
});
} }
} }

View File

@ -4,9 +4,10 @@ import Section from 'salix/components/section';
export default class Controller extends Section { export default class Controller extends Section {
onSubmit() { onSubmit() {
this.$.watcher.check(); this.$.watcher.check();
this.$.model.save().then(() => this.$.model.save().then(() => {
this.$.watcher.notifySaved() this.$.watcher.notifySaved();
); this.$.watcher.updateOriginalData();
});
} }
} }

View File

@ -4,9 +4,10 @@ import Section from 'salix/components/section';
class Controller extends Section { class Controller extends Section {
onSubmit() { onSubmit() {
this.$.watcher.check(); this.$.watcher.check();
this.$.model.save().then(() => this.$.model.save().then(() => {
this.$.watcher.notifySaved() this.$.watcher.notifySaved();
); this.$.watcher.updateOriginalData();
});
} }
} }

View File

@ -13,9 +13,10 @@ class Controller extends Section {
onSubmit() { onSubmit() {
this.$.watcher.check(); this.$.watcher.check();
this.$.model.save().then(() => this.$.model.save().then(() => {
this.$.watcher.notifySaved() this.$.watcher.notifySaved();
); this.$.watcher.updateOriginalData();
});
} }
} }