From 33fb48d59a60d6ec1ed668bb8a4c9b346f6bbef4 Mon Sep 17 00:00:00 2001 From: yflory Date: Sat, 28 Jul 2018 09:10:11 +0200 Subject: [PATCH] Update shared folder icon in the drive --- www/drive/inner.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index fd2a14c0a..c60f38327 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -71,7 +71,8 @@ define([ // Icons var faFolder = 'fa-folder'; var faFolderOpen = 'fa-folder-open'; - var faSharedFolder = 'fa-hdd-o'; + var faSharedFolder = 'fa-folder-o'; + var faShared = 'fa-shhare-alt'; var faReadOnly = 'fa-eye'; var faRename = 'fa-pencil'; var faTrash = 'fa-trash'; @@ -111,6 +112,7 @@ define([ var $renamedIcon = $('', {"class": "fa fa-flag"}); var $readonlyIcon = $('', {"class": "fa " + faReadOnly}); var $ownedIcon = $('', {"class": "fa fa-id-card-o"}); + var $sharedIcon = $('', {"class": "fa " + faShared}); var $ownerIcon = $('', {"class": "fa fa-id-card"}); var $tagsIcon = $('', {"class": "fa " + faTags}); @@ -1415,6 +1417,9 @@ define([ element = manager.folders[element].proxy[manager.user.userObject.ROOT]; $span.addClass('cp-app-drive-element-sharedf'); _addOwnership($span, $state, data); + + var $shared = $sharedIcon.clone().appendTo($state); + $shared.attr('title', 'Can be shared'); // XXX } var sf = manager.hasSubfolder(element);