1
0
Fork 0
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:
Knut Ahlers 2020-01-04 18:06:25 +01:00
parent b515c32f98
commit c294ea1308
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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() {