Bläddra i källkod

feat(AddPeopleDialog): Enable contact invitation based on interfaceConfig flag

master
Mihai Uscat 5 år sedan
förälder
incheckning
ab1c5805f4

+ 2
- 0
interface_config.js Visa fil

88
     DISPLAY_WELCOME_PAGE_CONTENT: true,
88
     DISPLAY_WELCOME_PAGE_CONTENT: true,
89
     DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
89
     DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
90
 
90
 
91
+    ENABLE_DIAL_OUT: true,
92
+
91
     ENABLE_FEEDBACK_ANIMATION: false, // Enables feedback star animation.
93
     ENABLE_FEEDBACK_ANIMATION: false, // Enables feedback star animation.
92
 
94
 
93
     FILM_STRIP_MAX_HEIGHT: 120,
95
     FILM_STRIP_MAX_HEIGHT: 120,

+ 6
- 6
react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js Visa fil

36
     _dialIn: Object,
36
     _dialIn: Object,
37
 
37
 
38
     /**
38
     /**
39
-     * Whether or not invite should be hidden.
39
+     * Whether or not invite contacts should be visible.
40
      */
40
      */
41
-    _hideInviteContacts: boolean,
41
+    _inviteContactsVisible: boolean,
42
 
42
 
43
     /**
43
     /**
44
      * The current url of the conference to be copied onto the clipboard.
44
      * The current url of the conference to be copied onto the clipboard.
79
 function AddPeopleDialog({
79
 function AddPeopleDialog({
80
     _conferenceName,
80
     _conferenceName,
81
     _dialIn,
81
     _dialIn,
82
-    _hideInviteContacts,
82
+    _inviteContactsVisible,
83
     _inviteUrl,
83
     _inviteUrl,
84
     _liveStreamViewURL,
84
     _liveStreamViewURL,
85
     _localParticipantName,
85
     _localParticipantName,
146
             titleKey = 'addPeople.inviteMorePrompt'
146
             titleKey = 'addPeople.inviteMorePrompt'
147
             width = { 'small' }>
147
             width = { 'small' }>
148
             <div className = 'invite-more-dialog'>
148
             <div className = 'invite-more-dialog'>
149
-                { !_hideInviteContacts && <InviteContactsSection /> }
149
+                { _inviteContactsVisible && <InviteContactsSection /> }
150
                 <CopyMeetingLinkSection url = { _inviteUrl } />
150
                 <CopyMeetingLinkSection url = { _inviteUrl } />
151
                 <InviteByEmailSection
151
                 <InviteByEmailSection
152
                     inviteSubject = { inviteSubject }
152
                     inviteSubject = { inviteSubject }
183
     const { iAmRecorder } = state['features/base/config'];
183
     const { iAmRecorder } = state['features/base/config'];
184
     const addPeopleEnabled = isAddPeopleEnabled(state);
184
     const addPeopleEnabled = isAddPeopleEnabled(state);
185
     const dialOutEnabled = isDialOutEnabled(state);
185
     const dialOutEnabled = isDialOutEnabled(state);
186
+    const hideInviteContacts = iAmRecorder || (!addPeopleEnabled && !dialOutEnabled);
186
 
187
 
187
     return {
188
     return {
188
         _conferenceName: getRoomName(state),
189
         _conferenceName: getRoomName(state),
189
         _dialIn: state['features/invite'],
190
         _dialIn: state['features/invite'],
190
-        _hideInviteContacts:
191
-            iAmRecorder || (!addPeopleEnabled && !dialOutEnabled),
191
+        _inviteContactsVisible: interfaceConfig.ENABLE_DIAL_OUT && !hideInviteContacts,
192
         _inviteUrl: getInviteURL(state),
192
         _inviteUrl: getInviteURL(state),
193
         _liveStreamViewURL:
193
         _liveStreamViewURL:
194
             currentLiveStreamingSession
194
             currentLiveStreamingSession

Laddar…
Avbryt
Spara