diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-03 15:47:20 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-03 15:47:20 +0200 |
commit | 6bf6ff9564640190413d255ed28181f3d9880ea3 (patch) | |
tree | 66456f9b3faca9812fb69bf0dc7e3b53866463b9 /apps/files/js | |
parent | 99d7352ef9ed42af6f7d76c4d2e983705c2b43f6 (diff) | |
download | nextcloud-server-6bf6ff9564640190413d255ed28181f3d9880ea3.tar.gz nextcloud-server-6bf6ff9564640190413d255ed28181f3d9880ea3.zip |
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')
-rw-r--r-- | apps/files/js/fileactions.js | 3 |
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); |