From 32a4a753f9ac0a12bff7d906097f55aaa252438e Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Thu, 3 Oct 2024 20:31:46 +0200 Subject: [PATCH] WebClient: improve readability of upload progress Fixes #1773 Signed-off-by: Nicola Murino --- static/locales/en/translation.json | 8 ++--- static/locales/it/translation.json | 8 ++--- templates/common/base.html | 13 +++++++- templates/webadmin/admins.html | 4 +-- templates/webadmin/configs.html | 4 +-- templates/webadmin/connections.html | 2 +- templates/webadmin/defender.html | 2 +- templates/webadmin/eventactions.html | 2 +- templates/webadmin/eventrules.html | 4 +-- templates/webadmin/folders.html | 2 +- templates/webadmin/groups.html | 2 +- templates/webadmin/iplists.html | 2 +- templates/webadmin/roles.html | 2 +- templates/webadmin/users.html | 6 ++-- templates/webclient/files.html | 46 +++++++++++++--------------- templates/webclient/shares.html | 2 +- templates/webclient/shareupload.html | 13 ++++---- 17 files changed, 64 insertions(+), 58 deletions(-) diff --git a/static/locales/en/translation.json b/static/locales/en/translation.json index 154560c7a..7001b5e77 100644 --- a/static/locales/en/translation.json +++ b/static/locales/en/translation.json @@ -291,10 +291,10 @@ "no_files_folders": "No files or folders", "invalid_name": "File or folder names cannot contain \"/\"", "folder_name_required": "Folder name is required", - "deleting": "Delete {{idx}}/{{total}}: {{- name}}", - "copying": "Copy {{idx}}/{{total}}: {{- name}}", - "moving": "Move {{idx}}/{{total}}: {{- name}}", - "uploading": "Upload {{idx}}/{{total}}: {{- name}}", + "deleting": "Delete {{idx}}/{{total}}", + "copying": "Copy {{idx}}/{{total}}", + "moving": "Move {{idx}}/{{total}}", + "uploading": "Upload {{idx}}/{{total}}", "err_403": "Permission denied", "err_429": "Too many concurrent requests", "err_generic": "Unable to access the requested resource", diff --git a/static/locales/it/translation.json b/static/locales/it/translation.json index 3e3de6f25..6d324eef2 100644 --- a/static/locales/it/translation.json +++ b/static/locales/it/translation.json @@ -291,10 +291,10 @@ "no_files_folders": "Nessun file o cartella", "invalid_name": "I nomi di file o cartelle non possono contenere \"/\"", "folder_name_required": "Il nome della cartella รจ obbligatorio", - "deleting": "Eliminazione {{idx}}/{{total}}: {{- name}}", - "copying": "Copia {{idx}}/{{total}}: {{- name}}", - "moving": "Spostamento {{idx}}/{{total}}: {{- name}}", - "uploading": "Caricamento {{idx}}/{{total}}: {{- name}}", + "deleting": "Eliminazione {{idx}}/{{total}}", + "copying": "Copia {{idx}}/{{total}}", + "moving": "Spostamento {{idx}}/{{total}}", + "uploading": "Caricamento {{idx}}/{{total}}", "err_403": "Non si dispone delle autorizzazioni richieste", "err_429": "Troppe richieste contemporanee", "err_generic": "Impossibile accedere alla risorsa richiesta", diff --git a/templates/common/base.html b/templates/common/base.html index 02af5a303..bd281e766 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -311,6 +311,16 @@ } } + function clearLoading() { + $('#loading_info').text(""); + $('#loading_message').text(""); + } + + function setLoadingText(info, message) { + $('#loading_info').text(info); + $('#loading_message').text(message); + } + KTUtil.onDOMContentLoaded(function () { var dismissErrorBtn = $('#id_dismiss_error_msg'); if (dismissErrorBtn){ @@ -900,7 +910,8 @@
- + +