show message in Contacts tab if user has no contacts

This commit is contained in:
David Benqué
2019-11-19 16:48:37 +00:00
parent db104d6610
commit 718fdb556b
2 changed files with 3 additions and 2 deletions

View File

@@ -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);