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:
Richard Bowman 2024-01-03 14:28:31 +00:00
parent fc49ca7656
commit 37f6251d41
3 changed files with 2 additions and 39 deletions

View file

@ -56,12 +56,6 @@ export default {
};
},
computed: {
pluginsUri: function() {
return `${this.$store.getters.baseUri}/api/v2/extensions`;
}
},
mounted: function() {
this.updateZipperUri();
},
@ -84,7 +78,7 @@ export default {
methods: {
updateZipperUri: function() {
if (this.$store.state.available) {
axios
/*axios
.get(this.pluginsUri) // Get a list of plugins
.then(response => {
var plugins = response.data;
@ -100,7 +94,7 @@ export default {
})
.catch(error => {
this.modalError(error); // Let mixin handle error
});
});*/
} else {
this.zipBuilderUri = null;
this.zipGetterUri = null;

View file

@ -134,7 +134,6 @@
</template>
<script>
import axios from "axios";
import taskSubmitter from "../../genericComponents/taskSubmitter";
export default {
@ -166,9 +165,6 @@ export default {
},
computed: {
pluginsUri: function() {
return `${this.$store.getters.baseUri}/api/v2/extensions`;
},
currentTimeForm: {
get() {
// Chop the timezone information from the end
@ -210,30 +206,7 @@ export default {
}
},
mounted: function() {
this.updateScanUri();
},
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) {
this.scanRunning = false;
this.modalError(error);