Also use default label if share label is null

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-11-07 15:14:29 +01:00
parent 836ba4f419
commit d110f0c29c
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@
return _.extend({}, share, {
cid: share.id,
shareAllowed: true,
linkShareLabel: share.label !== '' ? share.label : t('core', 'Share link'),
linkShareLabel: share.label ? share.label : t('core', 'Share link'),
popoverMenu: {},
shareLinkURL: share.url,
newShareTitle: t('core', 'New share link'),