Add download limit bar on file viewer

This commit is contained in:
2022-12-24 11:37:02 +01:00
parent 5729bb81f6
commit 34ede38889
13 changed files with 196 additions and 142 deletions

View File

@@ -70,7 +70,7 @@ const add_files = async files => {
}
const delete_file = async index => {
const list_files = list.files
let list_files = list.files
list_files.splice(index, 1)
await update_list(list_files)
list.files = list_files
@@ -80,7 +80,7 @@ const move_left = async index => {
if (index === 0) {
return;
}
const f = list.files;
let f = list.files;
[f[index], f[index-1]] = [f[index-1], f[index]];
await update_list(f)
list.files = f
@@ -89,7 +89,7 @@ const move_right = async index => {
if (index >= list.files.length-1) {
return;
}
const f = list.files;
let f = list.files;
[f[index], f[index+1]] = [f[index+1], f[index]];
await update_list(f)
list.files = f