@@ -234,7 +234,7 @@
{
// Flash the stream (capture animation)
this.$root.$emit("globalFlashStream");
@@ -403,6 +400,26 @@ export default {
});
},
+ updateScanUri: function() {
+ axios
+ .get(this.pluginsUri) // Get a list of plugins
+ .then(response => {
+ var plugins = response.data;
+ // if ScanPlugin is enabled
+ if ("ScanPlugin" in plugins) {
+ // Get plugin action link
+ var link = plugins.ScanPlugin.views.tile.links.self;
+ // Store plugin action URI
+ this.scanUri = `http://${this.$store.state.host}:${
+ this.$store.state.port
+ }${link}`;
+ }
+ })
+ .catch(error => {
+ this.modalError(error); // Let mixin handle error
+ });
+ },
+
onScanSubmit: function() {},
onScanResponse: function(responseData) {