diff options
author | Robin Appelman <robin@icewind.nl> | 2017-04-26 14:53:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-28 09:38:21 +0200 |
commit | ab9a36e872173b34be2e678de0c452885e3b48d8 (patch) | |
tree | 76e34c578bfdde6ab46164f9e4227e4fe0cc351e /core | |
parent | 9da697b11af2928a1470dcedc7ebf77e4a5f0730 (diff) | |
download | nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.tar.gz nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.zip |
allow apps to set custom mount types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/files/client.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js index cde3afde9d7..e8cf5b9bdb4 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -114,7 +114,11 @@ /** * Preview availability */ - [Client.NS_NEXTCLOUD, 'has-preview'] + [Client.NS_NEXTCLOUD, 'has-preview'], + /** + * Mount type + */ + [Client.NS_NEXTCLOUD, 'mount-type'], ]; /** @@ -361,6 +365,11 @@ } } + var mounTypeProp = props['{' + Client.NS_NEXTCLOUD + '}mount-type']; + if (!_.isUndefined(mounTypeProp)) { + data.mountType = mounTypeProp; + } + // extend the parsed data using the custom parsers _.each(this._fileInfoParsers, function(parserFunction) { _.extend(data, parserFunction(response) || {}); |