diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 43ffbbaf3..056e81808 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1152,12 +1152,12 @@ define([ var hasFriends = Object.keys(config.friends || {}).length !== 0; var onFriendShare = Util.mkEvent(); - var friendsList = hasFriends ? createShareWithFriends(config, onFriendShare) : undefined; + var friendsList = hasFriends ? createShareWithFriends(config, onFriendShare) : h('p', Messages.share_noContacts); // var friendsUIClass = hasFriends ? '.cp-share-columns' : ''; onFriendShare.reg(saveValue); - contactsAccessRights = createAccessRights('contact-rights'); + var contactsAccessRights = hasFriends ? createAccessRights('contact-rights') : ''; var contacts = h('.cp-share-modal', contactsAccessRights); var $contacts = $(contacts); diff --git a/www/common/translations/messages.json b/www/common/translations/messages.json index 8de498439..032a2d87c 100644 --- a/www/common/translations/messages.json +++ b/www/common/translations/messages.json @@ -988,6 +988,7 @@ "share_linkOpen": "Open in new tab", "share_linkCopy": "Copy to clipboard", "share_contactCategory": "Contacts", + "share_noContacts": "You have no friends, learn how to get some. // XXX", "share_embedCategory": "Embed", "share_mediatagCopy": "Copy mediatag to clipboard", "loading_pad_1": "Initializing pad",