From ab9a36e872173b34be2e678de0c452885e3b48d8 Mon Sep 17 00:00:00 2001
From: Robin Appelman <robin@icewind.nl>
Date: Wed, 26 Apr 2017 14:53:11 +0200
Subject: allow apps to set custom mount types

Signed-off-by: Robin Appelman <robin@icewind.nl>
---
 core/js/files/client.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'core')

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) || {});
-- 
cgit v1.2.3