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." + ); } } };