Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-03 16:47:20 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-03 16:47:20 +0300
commit6bf6ff9564640190413d255ed28181f3d9880ea3 (patch)
tree66456f9b3faca9812fb69bf0dc7e3b53866463b9 /apps/files/js/fileactions.js
parent99d7352ef9ed42af6f7d76c4d2e983705c2b43f6 (diff)
If an inline files action provides an alt text show it
* Added unit tests for icon display * Added unit tests for icon alt text display
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index bde0b094b87..079c5330ec2 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -144,7 +144,8 @@
order: action.order || 0,
icon: action.icon,
permissions: action.permissions,
- type: action.type || FileActions.TYPE_DROPDOWN
+ type: action.type || FileActions.TYPE_DROPDOWN,
+ altText: action.altText || ''
};
if (_.isUndefined(action.displayName)) {
actionSpec.displayName = t('files', name);