From 802d347574622301ddac53c9c1e84cc85b25b5f5 Mon Sep 17 00:00:00 2001 From: virtuacoplenny Date: Fri, 29 Sep 2017 11:29:44 -0700 Subject: [PATCH] ref(contact-list): remove invite functionality (#2017) * ref(contact-list): remove invite functionality Removing becuase there is already a toolbar button dedicated to opening the invite dialog. Now the contact list focuses on showing current participants. * squash: remove unused strings and styling * squash: add plural to panel title --- css/_contact_list.scss | 12 --- css/components/_form-control.scss | 13 --- lang/main.json | 6 +- .../components/ContactListPanel.web.js | 97 ++----------------- 4 files changed, 10 insertions(+), 118 deletions(-) diff --git a/css/_contact_list.scss b/css/_contact_list.scss index 094ba18be..1110fe457 100644 --- a/css/_contact_list.scss +++ b/css/_contact_list.scss @@ -1,18 +1,6 @@ #contacts_container { cursor: default; - /** - * Override generic side toolbar styles to compensate for AtlasKit Button - * being used instead of custom button styling. - */ - .sideToolbarBlock { - .contact-list-panel-invite-button { - font-size: $modalButtonFontSize; - justify-content: center; - margin: 9px 0; - } - } - #contacts { font-size: 12px; bottom: 0px; diff --git a/css/components/_form-control.scss b/css/components/_form-control.scss index d6e859fbb..a571665ec 100644 --- a/css/components/_form-control.scss +++ b/css/components/_form-control.scss @@ -23,19 +23,6 @@ color: $inputControlEmColor; } - &__hint { - margin-top: 0; - font-size: $hintFontSize; - - span { - vertical-align: middle; - } - - &_error { - color: $errorColor; - } - } - &__container { position: relative; width: 100%; diff --git a/lang/main.json b/lang/main.json index eb4f3962b..55824d73c 100644 --- a/lang/main.json +++ b/lang/main.json @@ -1,8 +1,6 @@ { - "contactlist": "__pcount__ Members", - "addParticipants": "Share the link", - "roomLocked": "Callers must enter a password", - "roomUnlocked": "Anyone with the link can join", + "contactlist": "__count__ Member", + "contactlist_plural": "__count__ Members", "passwordSetRemotely": "set by another member", "connectionsettings": "Connection Settings", "poweredby": "powered by", diff --git a/react/features/contact-list/components/ContactListPanel.web.js b/react/features/contact-list/components/ContactListPanel.web.js index f8d8e1dd8..9ae8640ed 100644 --- a/react/features/contact-list/components/ContactListPanel.web.js +++ b/react/features/contact-list/components/ContactListPanel.web.js @@ -1,19 +1,16 @@ -import Button from '@atlaskit/button'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { translate } from '../../base/i18n'; import { getAvatarURL, getParticipants } from '../../base/participants'; -import { openInviteDialog } from '../../invite'; import ContactListItem from './ContactListItem'; declare var interfaceConfig: Object; /** - * React component for showing a list of current conference participants, the - * current conference lock state, and a button to open the invite dialog. + * React component for showing a list of current conference participants. * * @extends Component */ @@ -24,20 +21,15 @@ class ContactListPanel extends Component { * @static */ static propTypes = { - /** - * Whether or not the conference is currently locked with a password. - */ - _locked: PropTypes.bool, - /** * The participants to show in the contact list. */ _participants: PropTypes.array, /** - * Invoked to open an invite dialog. + * Whether or not participant avatars should be displayed. */ - dispatch: PropTypes.func, + _showAvatars: PropTypes.bool, /** * Invoked to obtain translated strings. @@ -45,46 +37,18 @@ class ContactListPanel extends Component { t: PropTypes.func }; - /** - * Initializes a new {@code ContactListPanel} instance. - * - * @param {Object} props - The read-only properties with which the new - * instance is to be initialized. - */ - constructor(props) { - super(props); - - // Bind event handler so it is only bound once for every instance. - this._onOpenInviteDialog = this._onOpenInviteDialog.bind(this); - } - /** * Implements React's {@link Component#render()}. * * @inheritdoc */ render() { - const { _locked, _participants, t } = this.props; + const { _participants, t } = this.props; return (
- { t('contactlist', { pcount: _participants.length }) } -
-
- -
- { _locked - ? this._renderLockedMessage() - : this._renderUnlockedMessage() } -
+ { t('contactlist', { count: _participants.length }) }