diff --git a/webapp/src/components/tabContentComponents/captureComponents/paneCapture.vue b/webapp/src/components/tabContentComponents/captureComponents/paneCapture.vue index 8a74b94b..e1881c1c 100644 --- a/webapp/src/components/tabContentComponents/captureComponents/paneCapture.vue +++ b/webapp/src/components/tabContentComponents/captureComponents/paneCapture.vue @@ -221,6 +221,17 @@ +
+ +
+
{ @@ -540,6 +558,22 @@ export default { .catch(error => { this.modalError(error); // Let mixin handle error }); + + axios + .get(this.pluginsUri) // Get a list of plugins + .then(response => { + var plugins = response.data; + var foundExtension = plugins.find( + e => e.title === "org.openflexure.background-detect" + ); + if (foundExtension) { + // Get plugin action link + this.backgroundDetectUri = foundExtension.links.grab_and_classify_image.href; + } + }) + .catch(error => { + this.modalError(error); // Let mixin handle error + }); }, onScanResponse: function() {