mirror of
https://github.com/Luzifer/sii.git
synced 2024-10-18 05:14:19 +00:00
UX: When planning routes, set source to previous target
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
b515c32f98
commit
c294ea1308
1 changed files with 6 additions and 1 deletions
|
@ -205,7 +205,12 @@ window.app = new Vue({
|
|||
}
|
||||
|
||||
this.plannedRoute.push(this.newJob)
|
||||
this.newJob = { weight: 10 } // Reset job
|
||||
|
||||
// Reset job
|
||||
this.newJob = {
|
||||
origin_reference: this.newJob.target_reference, // Automatically set origin to last target for route creation
|
||||
weight: 10
|
||||
}
|
||||
},
|
||||
|
||||
createRoute() {
|
||||
|
|
Loading…
Reference in a new issue