last minute fix

This commit is contained in:
AndzejsP 2023-06-23 17:55:35 +03:00
parent a85ea36954
commit b2ac608108
2 changed files with 18 additions and 9 deletions

View File

@ -52,14 +52,19 @@
{{ personality.author }} {{ personality.author }}
</div> </div>
<!-- <div class=""> <div class="flex items-center">
<b>Language:&nbsp;</b> <i data-feather="globe" class="w-5 m-1"></i>
{{ personality.language }} <b>Language:&nbsp;</b>
</div>
<div class=""> {{ personality.language }}
<b>Category:&nbsp;</b> </div>
{{ personality.category }} <div class="flex items-center">
</div> --> <i data-feather="bookmark" class="w-5 m-1"></i>
<b>Category:&nbsp;</b>
{{ personality.category }}
</div>
</div> </div>
<div class="flex items-center"> <div class="flex items-center">
<i data-feather="info" class="w-5 m-1"></i> <i data-feather="info" class="w-5 m-1"></i>

View File

@ -1319,8 +1319,12 @@ export default {
const progressListener = (response) => { const progressListener = (response) => {
console.log("received something"); console.log("received something");
if (response.status && response.progress <= 100) { if (response.status && response.progress <= 100) {
console.log(`Progress = ${response.progress}`); console.log(`Progress`,response);
model_object.progress = response.progress model_object.progress = response.progress
model_object.speed = response.speed
model_object.total_size = response.total_size
model_object.downloaded_size = response.downloaded_size
model_object.start_time = response.start_time
model_object.installing = true model_object.installing = true
if (model_object.progress == 100) { if (model_object.progress == 100) {
const index = this.models.findIndex((model) => model.path === path); const index = this.models.findIndex((model) => model.path === path);