init
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
{{ file.rel_path }}
|
||||
</template>
|
||||
<template v-slot:subtitle>
|
||||
|
||||
<v-progress-linear
|
||||
:model-value="file.stats.percent" height="12" color="blue">
|
||||
</v-progress-linear>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -97,6 +99,17 @@ export default {
|
||||
finished[file_id] = file;
|
||||
}else if(file_id in this.dm_status.downloading){
|
||||
downloading[file_id] = file;
|
||||
if(file_id in this.dm_status["downloader_stats"]){
|
||||
downloading[file_id]["stats"] = this.dm_status["downloader_stats"][file_id];
|
||||
}else{
|
||||
downloading[file_id]["stats"] = {
|
||||
total_size: file.size,
|
||||
downloaded_size: 0,
|
||||
speed: 0,
|
||||
percent: 0,
|
||||
eta: 0,
|
||||
};
|
||||
}
|
||||
}else{
|
||||
waiting[file_id] = file;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user