1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +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 // Reset job
this.newJob = { this.newJob = {
origin_reference: this.newJob.target_reference, // Automatically set origin to last target for route creation 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(() => { .then(() => {
this.showToast('Success', 'Route created', 'success') this.showToast('Success', 'Route created', 'success')
this.plannedRoute = [] this.plannedRoute = []
this.newJob = { weight: 10 }
}) })
.catch(err => { .catch(err => {
this.showToast('Uhoh…', 'Could not add route', 'danger') this.showToast('Uhoh…', 'Could not add route', 'danger')