summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-08-23 19:16:50 +0200
committerGitHub <noreply@github.com>2017-08-23 19:16:50 +0200
commit81acf70bcac96e8d735eb70d42d25a6482e73552 (patch)
treeccf472ee5cf63c862155d2794ca79c2c36b5897f
parent4cf7c351eaf3afec47c51b1776c3ff9cc3c7da3b (diff)
parent47f87bbf8c66399d6f87fb8100c60e020840fa9f (diff)
downloadnextcloud-server-81acf70bcac96e8d735eb70d42d25a6482e73552.tar.gz
nextcloud-server-81acf70bcac96e8d735eb70d42d25a6482e73552.zip
Merge pull request #6240 from nextcloud/12-6239
[stable12] Show "Uploading..." in web UI for long uploads
-rw-r--r--apps/files/js/file-upload.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 2fa3122a008..11365a310ed 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -1021,6 +1021,10 @@ OC.Uploader.prototype = _.extend({
}
var h = moment.duration(smoothRemainingSeconds, "seconds").humanize();
+ if (!(smoothRemainingSeconds >= 0 && smoothRemainingSeconds < 14400)) {
+ // show "Uploading ..." for durations longer than 4 hours
+ h = t('files', 'Uploading...');
+ }
$('#uploadprogressbar .label .mobile').text(h);
$('#uploadprogressbar .label .desktop').text(h);
$('#uploadprogressbar').attr('original-title',