refs #4925 fix: coge únicamente los últimos cambios aplicados
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
ddfee57470
commit
22d0da273e
|
@ -30,7 +30,6 @@ class Controller extends Section {
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
const changes = this.$.model.getChanges();
|
const changes = this.$.model.getChanges();
|
||||||
console.log(changes);
|
|
||||||
const data = {
|
const data = {
|
||||||
creates: changes.creates,
|
creates: changes.creates,
|
||||||
deletes: changes.deletes,
|
deletes: changes.deletes,
|
||||||
|
@ -38,9 +37,9 @@ class Controller extends Section {
|
||||||
maxPriority: this.getHighestPriority()
|
maxPriority: this.getHighestPriority()
|
||||||
};
|
};
|
||||||
this.$http.patch(`Tags/onSubmit`, data).then(() => {
|
this.$http.patch(`Tags/onSubmit`, data).then(() => {
|
||||||
|
this.$.model.refresh();
|
||||||
this.$.watcher.notifySaved();
|
this.$.watcher.notifySaved();
|
||||||
this.$.watcher.updateOriginalData();
|
this.$.watcher.updateOriginalData();
|
||||||
this.card.reload();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue