WebClient: improve readability of upload progress

Fixes #1773

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-10-03 18:53:57 +02:00
commit 3b2f709aeb
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
17 changed files with 64 additions and 58 deletions

View file

@ -125,7 +125,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.AdminURL}}' + "/" + encodeURIComponent(username);
@ -187,7 +187,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.AdminURL}}' + "/" + encodeURIComponent(username)+"/2fa/disable";

View file

@ -647,7 +647,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
return;
}
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let data = {"base_redirect_url": getCurrentURI(), "provider": parseInt($('#idSMTPOAuth2Provider').val()),
@ -744,7 +744,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let debug = 0;
if ($('#idSMTPDebug').is(':checked')){

View file

@ -82,7 +82,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.ConnectionsURL}}' + "/" + encodeURIComponent(connectionID);
if (node) {

View file

@ -78,7 +78,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.DefenderHostsURL}}' + "/" + encodeURIComponent(id);

View file

@ -78,7 +78,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.EventActionURL}}' + "/" + encodeURIComponent(name);

View file

@ -80,7 +80,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.EventRuleURL}}' + "/" + encodeURIComponent(name);
@ -135,7 +135,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.EventRuleURL}}' + "/run/" + encodeURIComponent(name);

View file

@ -110,7 +110,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.FolderURL}}' + "/" + encodeURIComponent(name);

View file

@ -96,7 +96,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.GroupURL}}' + "/" + encodeURIComponent(name);

View file

@ -210,7 +210,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.IPListURL}}' + "/" + encodeURIComponent(listType)+ "/" + encodeURIComponent(ipNet);
axios.delete(path, {

View file

@ -97,7 +97,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.RoleURL}}' + "/" + encodeURIComponent(name);

View file

@ -145,7 +145,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.UserURL}}' + "/" + encodeURIComponent(username);
@ -200,7 +200,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
}).then((result) => {
if (result.isConfirmed){
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.UserURL}}' + "/" + encodeURIComponent(username)+"/2fa/disable";
@ -230,7 +230,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
}
function quotaScanAction(username) {
$('#loading_message').text("");
clearLoading();
KTApp.showPageLoading();
let path = '{{.QuotaScanURL}}' + "/" + encodeURIComponent(username);
axios.post(path, null, {