linagora-rse
Version:
26 lines (23 loc) • 867 B
JavaScript
(function(angular) {
'use strict';
angular.module('linagora.esn.contact').run(runBlock);
function runBlock(
ContactVirtualAddressBookRegistry,
ContactFollowingVirtualAddressBook,
DisplayShellProvider,
ContactUserDisplayShell,
ContactUserShellHelper,
contactAddressbookDisplayShellRegistry,
ContactUserVirtualAddressBookDisplayShell,
CONTACT_FOLLOWING_VIRTUAL_ADDRESSBOOK_ID
) {
ContactVirtualAddressBookRegistry.put(ContactFollowingVirtualAddressBook);
DisplayShellProvider.addDisplayShell(ContactUserDisplayShell, ContactUserShellHelper.isUser);
contactAddressbookDisplayShellRegistry.add({
id: CONTACT_FOLLOWING_VIRTUAL_ADDRESSBOOK_ID,
priority: 30,
displayShell: ContactUserVirtualAddressBookDisplayShell,
matchingFunction: ContactUserShellHelper.isAddressbook
});
}
})(angular);