Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-08-18 13:34:31 +0300
committerJoas Schilling <coding@schilljs.com>2016-08-18 13:34:31 +0300
commit73147c0d2b0009c044bce28719398b5faae818c7 (patch)
tree4fea374e183fb06e359a45b2988cf33b86d2229d /js
parent21aa7a5db6e9510fbd10c023fd0c0f52e10f84a0 (diff)
Better handling of N/A database size
Diffstat (limited to 'js')
-rw-r--r--js/script.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/script.js b/js/script.js
index 2218460..2bc64e1 100644
--- a/js/script.js
+++ b/js/script.js
@@ -235,7 +235,11 @@
$('#databaseType').text(' ' + database.type);
$('#databaseVersion').text(' ' + database.version);
- $('#dataBaseSize').text(' ' + bytesToSize(database.size));
+ if (database.size === 'N/A') {
+ $('#dataBaseSize').text(' ' + database.size);
+ } else {
+ $('#dataBaseSize').text(' ' + bytesToSize(database.size));
+ }
}
function resizeSystemCharts () {