diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-05 17:31:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-05 17:31:41 +0200 |
commit | ca565644b36930b63bb996268e848460843f0433 (patch) | |
tree | 614920773d756379f1867bb1ac558c58617c30b9 /core | |
parent | 5d5b1285ec68367f68649c5c212521b55eaca67c (diff) | |
parent | be56374c517633d895e245916e047a72e6723038 (diff) | |
download | nextcloud-server-ca565644b36930b63bb996268e848460843f0433.tar.gz nextcloud-server-ca565644b36930b63bb996268e848460843f0433.zip |
Merge pull request #5621 from nextcloud/fix-sorting-of-favorite-files-in-file-list
Fix sorting of favorite files in file list
Diffstat (limited to 'core')
-rw-r--r-- | core/js/files/client.js | 7 | ||||
-rw-r--r-- | core/js/files/fileinfo.js | 7 |
2 files changed, 1 insertions, 13 deletions
diff --git a/core/js/files/client.js b/core/js/files/client.js index da8a1205e4b..d8e615f6d6d 100644 --- a/core/js/files/client.js +++ b/core/js/files/client.js @@ -304,13 +304,6 @@ data.hasPreview = true; } - var isFavorite = props['{' + Client.NS_OWNCLOUD + '}favorite']; - if (!_.isUndefined(isFavorite)) { - data.isFavorite = isFavorite === '1'; - } else { - data.isFavorite = false; - } - var contentType = props[Client.PROPERTY_GETCONTENTTYPE]; if (!_.isUndefined(contentType)) { data.mimetype = contentType; diff --git a/core/js/files/fileinfo.js b/core/js/files/fileinfo.js index 7c8e4586448..1fc239da47a 100644 --- a/core/js/files/fileinfo.js +++ b/core/js/files/fileinfo.js @@ -132,12 +132,7 @@ /** * @type boolean */ - hasPreview: true, - - /** - * @type boolean - */ - isFavorite: false + hasPreview: true }; if (!OC.Files) { |