From d86e9c93f846ed15b90c882b10a325aba9c66165 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 6 Jan 2020 18:40:25 +0100 Subject: [PATCH] Fix: Reset job form on adding route Signed-off-by: Knut Ahlers --- cmd/sii-editor/frontend/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/sii-editor/frontend/app.js b/cmd/sii-editor/frontend/app.js index f185027..50c0090 100644 --- a/cmd/sii-editor/frontend/app.js +++ b/cmd/sii-editor/frontend/app.js @@ -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')