aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-07-05 22:21:30 +0200
committerGitHub <noreply@github.com>2022-07-05 22:21:30 +0200
commit79b6caada8c059d1e0dc0e9c9b5ca7a3f535b8b0 (patch)
tree6a51687d8d40bda1d2e77648a049ee7b960932c8 /apps/files/js/files.js
parent8b23c1c6772afdd4a1709bdb85cf3b88c5b5a6a5 (diff)
parent55722092d3602ba456e9b3bf2c6b06a871aa4bb3 (diff)
downloadnextcloud-server-79b6caada8c059d1e0dc0e9c9b5ca7a3f535b8b0.tar.gz
nextcloud-server-79b6caada8c059d1e0dc0e9c9b5ca7a3f535b8b0.zip
Merge pull request #32993 from nextcloud/fixes-for-quota-text-in-navigation-bar
Fixes for quota text in navigation bar
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 8645719f82b..5f00ce2cb22 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -105,9 +105,9 @@
if (response.data.quota > 0) {
$('#quota').attr('data-original-title', Math.floor(response.data.used/response.data.quota*1000)/10 + '%');
$('#quota progress').val(response.data.usedSpacePercent);
- $('#quotatext').text(t('files', '{used} of {quota} used', {used: humanUsed, quota: humanQuota}));
+ $('#quotatext').html(t('files', '{used} of {quota} used', {used: humanUsed, quota: humanQuota}));
} else {
- $('#quotatext').text(t('files', '{used} used', {used: humanUsed}));
+ $('#quotatext').html(t('files', '{used} used', {used: humanUsed}));
}
if (response.data.usedSpacePercent > 80) {
$('#quota progress').addClass('warn');