From 5ca8070bc8d1e4a356baf726d7b0fb3eea51ebe1 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Wed, 3 Jan 2024 10:08:47 +0000 Subject: [PATCH 1/4] WIP: modal progress dialog for TaskSubmitter Longer-running tasks would benefit hugely from showing the operator a progress indicator. This branch will add a basic log display allowing messages to be shown to the user. This branch may also add an abort button to the above dialog. --- .../genericComponents/taskSubmitter.vue | 78 +++++++++++-------- .../CSMCalibrationSettings.vue | 1 + 2 files changed, 47 insertions(+), 32 deletions(-) diff --git a/webapp/src/components/genericComponents/taskSubmitter.vue b/webapp/src/components/genericComponents/taskSubmitter.vue index ca316568..2f2a3ac2 100644 --- a/webapp/src/components/genericComponents/taskSubmitter.vue +++ b/webapp/src/components/genericComponents/taskSubmitter.vue @@ -34,11 +34,22 @@ {{ submitLabel }} + + - - From 2ce6ea4bc0bc74f37b7c69919cf38e1c210cc22c Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 4 Jan 2024 01:05:24 +0000 Subject: [PATCH 4/4] Working modal progress/cancel dialog for actions. --- .../genericComponents/taskSubmitter.vue | 66 +++++++++++++++++-- 1 file changed, 60 insertions(+), 6 deletions(-) diff --git a/webapp/src/components/genericComponents/taskSubmitter.vue b/webapp/src/components/genericComponents/taskSubmitter.vue index a8dd6737..041e638c 100644 --- a/webapp/src/components/genericComponents/taskSubmitter.vue +++ b/webapp/src/components/genericComponents/taskSubmitter.vue @@ -35,12 +35,33 @@ - @@ -125,7 +146,14 @@ export default { } }, - created() {}, + watch: { + log: function() { + this.$nextTick(function() { + let viewer = this.$refs.logContainer; + viewer.scrollTop = viewer.scrollHeight; + }); + } + }, mounted() { // Check for already running tasks @@ -192,7 +220,7 @@ export default { this.$emit("taskStarted", this.taskId); try { let response = await axios.post(this.submitUrl, this.submitData); - if (this.statusModal) { + if (this.modalProgress) { UIkit.modal(this.$refs.statusModal).show(); } // Start the store polling TaskId for success @@ -283,6 +311,32 @@ export default {