aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-10-16 14:22:47 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-17 12:35:20 +0000
commit4530877e5d12035f33152bb4f18238c3b543c597 (patch)
tree890895bc5dc8f06cf8b19f5969a776baadbd8153
parent8a710c88372511dcb68abab195771d2a9639061e (diff)
downloadnextcloud-server-4530877e5d12035f33152bb4f18238c3b543c597.tar.gz
nextcloud-server-4530877e5d12035f33152bb4f18238c3b543c597.zip
Fetch quota with files propfind
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--core/js/files/client.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js
index 0daf7c9dc3f..baef0bb3221 100644
--- a/core/js/files/client.js
+++ b/core/js/files/client.js
@@ -117,6 +117,7 @@
* File sizes
*/
[Client.NS_DAV, 'getcontentlength'],
+ [Client.NS_DAV, 'quota-available-bytes'],
/**
* Preview availability
*/
@@ -394,6 +395,11 @@
data.mountType = mounTypeProp;
}
+ const quotaAvailableBytes = props['{' + Client.NS_DAV + '}quota-available-bytes']
+ if (!_.isUndefined(quotaAvailableBytes)) {
+ data.quotaAvailableBytes = quotaAvailableBytes
+ }
+
// extend the parsed data using the custom parsers
_.each(this._fileInfoParsers, function(parserFunction) {
_.extend(data, parserFunction(response, data) || {});