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:
parent
c43d142d3e
commit
d86e9c93f8
1 changed files with 2 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue