From 63ac7287321a101c3f601eeb151be73154ef7720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 11 May 2022 12:13:25 +0200 Subject: [PATCH] Web: remove concept of "selected jobs" and replace with "active job" The selection mechanism of Tabulator was getting in the way of having nice navigation, as it would deselect (i.e. nav to "/") before selecting the next job (i.e. nav to "/jobs/{job-id}"). The active job is now determined by the URL and thus handled by Vue Router. Clicking on a job simply navigates to its URL, which causes the reactive system to load & display it. It is still intended to get job selection for "mass actions", but that's only possible after normal navigation is working well. --- web/app/src/App.vue | 8 +-- web/app/src/assets/base.css | 12 ++++ web/app/src/components/JobActionsBar.vue | 3 +- web/app/src/components/JobsTable.vue | 72 +++++++++++++++--------- web/app/src/main.js | 2 +- web/app/src/router/index.js | 15 +++-- web/app/src/stores/jobs.js | 39 +++++-------- web/app/src/urls.js | 4 +- web/app/src/views/IndexView.vue | 46 +++++++++++++++ web/app/src/views/JobsView.vue | 70 +++++++++++++++-------- 10 files changed, 182 insertions(+), 89 deletions(-) create mode 100644 web/app/src/views/IndexView.vue diff --git a/web/app/src/App.vue b/web/app/src/App.vue index 1e7b6dd4..e993fdaf 100644 --- a/web/app/src/App.vue +++ b/web/app/src/App.vue @@ -1,16 +1,16 @@