@@ -222,7 +222,7 @@
-
+
Smart Stack
{
- var plugins = response.data;
- var foundExtension = plugins.find(
- e => e.title === "org.openflexure.scan"
- );
- // if ScanPlugin is enabled
- if (foundExtension) {
- // Get plugin action link
- this.scanUri = foundExtension.links.tile.href;
- }
- })
- .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.smart-stack"
- );
- if (foundExtension) {
- // Get plugin action link
- this.smartScanUri = foundExtension.links.tile.href;
- }
- })
- .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() {
this.modalNotify("Finished scan.");
// Emit signal to update capture list