ref(toolbar): remove custom (old) InviteButton dropdown config

This commit is contained in:
Leonard Kim 2018-04-10 15:17:54 -07:00 committed by Saúl Ibarra Corretgé
parent 5270da4c14
commit 4f157b71f3
4 changed files with 1 additions and 64 deletions

View File

@ -80,37 +80,6 @@
&#filmstripLocalVideo {
align-self: flex-end;
display: block;
/**
* The invite button style.
*/
.filmstrip__invite {
padding-bottom: 5px;
margin-left: 2px;
}
/**
* The invite button group style.
* TOFIX: use AtlasKit.ButtonGroup if it starts supporting different
* flex grow options for the buttons.
*/
.invite-button-group {
display: inline-flex;
justify-content: space-between;
width: 100%;
& button {
flex-grow: 1;
flex-shrink: 1;
overflow: hidden;
}
& > * {
flex-grow: 0;
flex-shrink: 0;
margin-left: 2px;
}
}
}
&.hidden {

View File

@ -75,8 +75,7 @@
}
/**
* Re-styles the local Video and invite button to better fit the
* vertical filmstrip layout.
* Re-styles the local Video to better fit vertical filmstrip layout.
*/
#filmstripLocalVideo {
align-self: initial;
@ -85,12 +84,6 @@
flex-direction: column-reverse;
height: auto;
justify-content: flex-start;
.filmstrip__invite {
padding-bottom: 0px;
padding-top: 5px;
z-index: $dropdownZ;
}
}
/**

View File

@ -50,7 +50,6 @@ var interfaceConfig = {
],
SETTINGS_SECTIONS: [ 'language', 'devices', 'moderator' ],
INVITE_OPTIONS: [ 'invite', 'dialout', 'addtocall' ],
// Determines how the video would fit the screen. 'both' would fit the whole
// screen, 'height' would fit the original video height to the height of the

View File

@ -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.
*