From 84f02ac696610c7e70557ac4939186eed9ae51ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 2 Aug 2022 14:54:49 +0200 Subject: [PATCH] Web: show "select a job" when the first job is submitted Hide the "get the add-on" and show the "select a job" when the first job has been submitted. --- web/app/src/stores/jobs.js | 3 +++ web/app/src/views/JobsView.vue | 1 + 2 files changed, 4 insertions(+) diff --git a/web/app/src/stores/jobs.js b/web/app/src/stores/jobs.js index bd3c4ba4..c6854852 100644 --- a/web/app/src/stores/jobs.js +++ b/web/app/src/stores/jobs.js @@ -36,6 +36,9 @@ export const useJobs = defineStore('jobs', { }, }, actions: { + setIsJobless(isJobless) { + this.$patch({ isJobless: isJobless }); + }, setActiveJobID(jobID) { this.$patch({ activeJob: {id: jobID, settings: {}, metadata: {}}, diff --git a/web/app/src/views/JobsView.vue b/web/app/src/views/JobsView.vue index 3e76ecb7..a5b21675 100644 --- a/web/app/src/views/JobsView.vue +++ b/web/app/src/views/JobsView.vue @@ -143,6 +143,7 @@ export default { // SocketIO data event handlers: onSioJobUpdate(jobUpdate) { this.notifs.addJobUpdate(jobUpdate); + this.jobs.setIsJobless(false); if (this.$refs.jobsTable) { if (jobUpdate.previous_status)