From dd7529da9853dff43b8e81685f3a1c7151bc9e24 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 10 Jul 2014 17:25:46 +0200 Subject: Added mountType attribute and adapted Delete action text Added mountType attribute for files/folder to indicated whether they are regular, external or shared. The client side then adapts the "Delete" action hint text based on this information. Only the mount roots must have the delete icon hint adapted. To make this detectable on the client side, the mountType can now be null, "shared", "shared-root", "external" or "external-root". This also gives room to icon customization on the client side. --- apps/files_external/js/mountsfilelist.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files_external/js') diff --git a/apps/files_external/js/mountsfilelist.js b/apps/files_external/js/mountsfilelist.js index 0f61f78aac8..20bf0f785db 100644 --- a/apps/files_external/js/mountsfilelist.js +++ b/apps/files_external/js/mountsfilelist.js @@ -104,6 +104,7 @@ _makeFiles: function(data) { var files = _.map(data, function(fileData) { fileData.icon = OC.imagePath('core', 'filetypes/folder-external'); + fileData.mountType = 'external'; return fileData; }); -- cgit v1.2.3