Eliminate references to old extensions API
Some of these will, in the future, be replaced by the new API but, for now, the features in question are disabled anyway.
This commit is contained in:
parent
fc49ca7656
commit
37f6251d41
3 changed files with 2 additions and 39 deletions
|
|
@ -231,10 +231,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
pluginsUri: function() {
|
|
||||||
return `${this.$store.getters.baseUri}/api/v2/extensions`;
|
|
||||||
},
|
|
||||||
|
|
||||||
pluginsGuiList: function() {
|
pluginsGuiList: function() {
|
||||||
// List of plugin GUIs, obtained from this.plugins values
|
// List of plugin GUIs, obtained from this.plugins values
|
||||||
var pluginGuis = [];
|
var pluginGuis = [];
|
||||||
|
|
|
||||||
|
|
@ -56,12 +56,6 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
|
||||||
pluginsUri: function() {
|
|
||||||
return `${this.$store.getters.baseUri}/api/v2/extensions`;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
mounted: function() {
|
mounted: function() {
|
||||||
this.updateZipperUri();
|
this.updateZipperUri();
|
||||||
},
|
},
|
||||||
|
|
@ -84,7 +78,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
updateZipperUri: function() {
|
updateZipperUri: function() {
|
||||||
if (this.$store.state.available) {
|
if (this.$store.state.available) {
|
||||||
axios
|
/*axios
|
||||||
.get(this.pluginsUri) // Get a list of plugins
|
.get(this.pluginsUri) // Get a list of plugins
|
||||||
.then(response => {
|
.then(response => {
|
||||||
var plugins = response.data;
|
var plugins = response.data;
|
||||||
|
|
@ -100,7 +94,7 @@ export default {
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.modalError(error); // Let mixin handle error
|
this.modalError(error); // Let mixin handle error
|
||||||
});
|
});*/
|
||||||
} else {
|
} else {
|
||||||
this.zipBuilderUri = null;
|
this.zipBuilderUri = null;
|
||||||
this.zipGetterUri = null;
|
this.zipGetterUri = null;
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import axios from "axios";
|
|
||||||
import taskSubmitter from "../../genericComponents/taskSubmitter";
|
import taskSubmitter from "../../genericComponents/taskSubmitter";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -166,9 +165,6 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
pluginsUri: function() {
|
|
||||||
return `${this.$store.getters.baseUri}/api/v2/extensions`;
|
|
||||||
},
|
|
||||||
currentTimeForm: {
|
currentTimeForm: {
|
||||||
get() {
|
get() {
|
||||||
// Chop the timezone information from the end
|
// Chop the timezone information from the end
|
||||||
|
|
@ -210,30 +206,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted: function() {
|
|
||||||
this.updateScanUri();
|
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
updateScanUri: function() {
|
|
||||||
axios
|
|
||||||
.get(this.pluginsUri) // Get a list of plugins
|
|
||||||
.then(response => {
|
|
||||||
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
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
onScanError: function(error) {
|
onScanError: function(error) {
|
||||||
this.scanRunning = false;
|
this.scanRunning = false;
|
||||||
this.modalError(error);
|
this.modalError(error);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue