From 2ce6ea4bc0bc74f37b7c69919cf38e1c210cc22c Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Thu, 4 Jan 2024 01:05:24 +0000 Subject: [PATCH] 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 {