This commit is contained in:
Saifeddine ALOUI 2023-06-28 23:34:21 +02:00
commit ada92c2db7

View File

@ -1362,7 +1362,7 @@ export default {
onCancelInstall() {
const modelEntry = this.addModel
console.log('cancel install', modelEntry)
// const keys = Object.keys(this.addModel)
// if (keys.includes('url')) {
// return
@ -1384,12 +1384,14 @@ export default {
let path = model_object.path;
this.showProgress = true;
this.progress = 0;
console.log("installing...");
this.addModel={ model_name: model_object.model.title, binding_folder: this.configFile.binding_name, model_url: model_object.path }
console.log("installing...", this.addModel);
// Use an arrow function for progressListener
const progressListener = (response) => {
console.log("received something");
if (response.status && response.progress <= 100) {
this.addModel=response
console.log(`Progress`, response);
model_object.progress = response.progress
model_object.speed = response.speed