|
@@ -12,7 +12,14 @@ import { isVpaasMeeting } from '../../../../billing-counter/functions';
|
12
|
12
|
import EmbedMeetingTrigger from '../../../../embed-meeting/components/EmbedMeetingTrigger';
|
13
|
13
|
import { getActiveSession } from '../../../../recording';
|
14
|
14
|
import { updateDialInNumbers } from '../../../actions';
|
15
|
|
-import { _getDefaultPhoneNumber, getInviteText, isAddPeopleEnabled, isDialOutEnabled } from '../../../functions';
|
|
15
|
+import {
|
|
16
|
+ _getDefaultPhoneNumber,
|
|
17
|
+ getInviteText,
|
|
18
|
+ isAddPeopleEnabled,
|
|
19
|
+ isDialOutEnabled,
|
|
20
|
+ sharingFeatures,
|
|
21
|
+ isSharingEnabled
|
|
22
|
+} from '../../../functions';
|
16
|
23
|
|
17
|
24
|
import CopyMeetingLinkSection from './CopyMeetingLinkSection';
|
18
|
25
|
import DialInSection from './DialInSection';
|
|
@@ -34,6 +41,21 @@ type Props = {
|
34
|
41
|
*/
|
35
|
42
|
_embedMeetingVisible: boolean,
|
36
|
43
|
|
|
44
|
+ /**
|
|
45
|
+ * Whether or not dial in number should be visible.
|
|
46
|
+ */
|
|
47
|
+ _dialInVisible: boolean,
|
|
48
|
+
|
|
49
|
+ /**
|
|
50
|
+ * Whether or not url sharing button should be visible.
|
|
51
|
+ */
|
|
52
|
+ _urlSharingVisible: boolean,
|
|
53
|
+
|
|
54
|
+ /**
|
|
55
|
+ * Whether or not email sharing features should be visible.
|
|
56
|
+ */
|
|
57
|
+ _emailSharingVisible: boolean,
|
|
58
|
+
|
37
|
59
|
/**
|
38
|
60
|
* The meeting invitation text.
|
39
|
61
|
*/
|
|
@@ -78,6 +100,9 @@ type Props = {
|
78
|
100
|
function AddPeopleDialog({
|
79
|
101
|
_dialIn,
|
80
|
102
|
_embedMeetingVisible,
|
|
103
|
+ _dialInVisible,
|
|
104
|
+ _urlSharingVisible,
|
|
105
|
+ _emailSharingVisible,
|
81
|
106
|
_invitationText,
|
82
|
107
|
_inviteContactsVisible,
|
83
|
108
|
_inviteUrl,
|
|
@@ -123,10 +148,14 @@ function AddPeopleDialog({
|
123
|
148
|
width = { 'small' }>
|
124
|
149
|
<div className = 'invite-more-dialog'>
|
125
|
150
|
{ _inviteContactsVisible && <InviteContactsSection /> }
|
126
|
|
- <CopyMeetingLinkSection url = { _inviteUrl } />
|
127
|
|
- <InviteByEmailSection
|
128
|
|
- inviteSubject = { inviteSubject }
|
129
|
|
- inviteText = { _invitationText } />
|
|
151
|
+ {_urlSharingVisible ? <CopyMeetingLinkSection url = { _inviteUrl } /> : null}
|
|
152
|
+ {
|
|
153
|
+ _emailSharingVisible
|
|
154
|
+ ? <InviteByEmailSection
|
|
155
|
+ inviteSubject = { inviteSubject }
|
|
156
|
+ inviteText = { _invitationText } />
|
|
157
|
+ : null
|
|
158
|
+ }
|
130
|
159
|
{ _embedMeetingVisible && <EmbedMeetingTrigger /> }
|
131
|
160
|
<div className = 'invite-more-dialog separator' />
|
132
|
161
|
{
|
|
@@ -134,7 +163,8 @@ function AddPeopleDialog({
|
134
|
163
|
&& <LiveStreamSection liveStreamViewURL = { _liveStreamViewURL } />
|
135
|
164
|
}
|
136
|
165
|
{
|
137
|
|
- _dialIn.numbers
|
|
166
|
+ _phoneNumber
|
|
167
|
+ && _dialInVisible
|
138
|
168
|
&& <DialInSection phoneNumber = { _phoneNumber } />
|
139
|
169
|
}
|
140
|
170
|
</div>
|
|
@@ -163,7 +193,10 @@ function mapStateToProps(state, ownProps) {
|
163
|
193
|
|
164
|
194
|
return {
|
165
|
195
|
_dialIn: dialIn,
|
166
|
|
- _embedMeetingVisible: !isVpaasMeeting(state),
|
|
196
|
+ _embedMeetingVisible: !isVpaasMeeting(state) && isSharingEnabled(sharingFeatures.embed),
|
|
197
|
+ _dialInVisible: isSharingEnabled(sharingFeatures.dialIn),
|
|
198
|
+ _urlSharingVisible: isSharingEnabled(sharingFeatures.url),
|
|
199
|
+ _emailSharingVisible: isSharingEnabled(sharingFeatures.email),
|
167
|
200
|
_invitationText: getInviteText({ state,
|
168
|
201
|
phoneNumber,
|
169
|
202
|
t: ownProps.t }),
|