From 7eeee89b2320d2b79c144a3b87b3d631b01d3f34 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Mon, 8 Jan 2024 16:40:07 +0000 Subject: [PATCH] Error messages if background detect fails. --- .../paneBackgroundDetect.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue b/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue index cf6283a3..1c9ba84d 100644 --- a/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue +++ b/webapp/src/components/tabContentComponents/backgroundDetectComponents/paneBackgroundDetect.vue @@ -24,7 +24,7 @@
@@ -34,6 +34,7 @@ :can-terminate="false" :poll-interval="0.1" @response="alertBackgroundFraction" + @error="backgroundDetectError" />
@@ -43,6 +44,7 @@ :can-terminate="false" :poll-interval="0.1" @response="alertImageLabel" + @error="backgroundDetectError" />
@@ -88,6 +90,12 @@ export default { alertImageLabel(r) { let label = r.output === true ? "sample" : "background"; this.modalNotify(`Current image is ${label}`); + }, + backgroundDetectError() { + this.modalError( + "Background detection failed, most likely you need to set a background image." + + " There may be more information in the log." + ); } } };