1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-20 16:11:17 +00:00

Fix: Reset job form on adding route

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-06 18:40:25 +01:00
parent c43d142d3e
commit d86e9c93f8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -209,7 +209,7 @@ window.app = new Vue({
// Reset job
this.newJob = {
origin_reference: this.newJob.target_reference, // Automatically set origin to last target for route creation
weight: 10
weight: 10,
}
},
@ -219,6 +219,7 @@ window.app = new Vue({
.then(() => {
this.showToast('Success', 'Route created', 'success')
this.plannedRoute = []
this.newJob = { weight: 10 }
})
.catch(err => {
this.showToast('Uhoh…', 'Could not add route', 'danger')