ref(toolbar): remove custom (old) InviteButton dropdown config
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
5270da4c14
commit
4f157b71f3
@@ -39,18 +39,6 @@ export function getDialInNumbers(url: string): Promise<*> {
|
||||
return doGetJSON(url);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the position of the invite option in the interfaceConfig.INVITE_OPTIONS
|
||||
* list.
|
||||
*
|
||||
* @param {string} name - The invite option name.
|
||||
* @private
|
||||
* @returns {number} - The position of the option in the list.
|
||||
*/
|
||||
export function getInviteOptionPosition(name: string): number {
|
||||
return interfaceConfig.INVITE_OPTIONS.indexOf(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a post request to an invite service.
|
||||
*
|
||||
@@ -84,18 +72,6 @@ export function invitePeopleAndChatRooms( // eslint-disable-line max-params
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if an invite option is enabled in the configuration.
|
||||
*
|
||||
* @param {string} name - The name of the option defined in
|
||||
* interfaceConfig.INVITE_OPTIONS.
|
||||
* @returns {boolean} - True to indicate that the given invite option is
|
||||
* enabled, false - otherwise.
|
||||
*/
|
||||
export function isInviteOptionEnabled(name: string) {
|
||||
return getInviteOptionPosition(name) !== -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends an ajax request to a directory service.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user