Browse Source

[4.3] MSPB-73: Allow users to enable video conferencing (#190)

4.3
Ricardo Merino 6 years ago
committed by GitHub
parent
commit
3a0754f5d6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions
  1. +2
    -1
      i18n/en-US.json
  2. +16
    -0
      submodules/users/users.js
  3. +8
    -0
      submodules/users/views/feature-conferencing.html

+ 2
- 1
i18n/en-US.json View File

@ -658,7 +658,8 @@
"pinLabel": "Personal Conference Room number",
"number": "Conferencing Phone Number(s)",
"help": "You can create a conference call by providing a conferencing phone number and your personal room number to the participants",
"noConfNumbers": "You need to add a Main Conference Number (in the Main number section on the left of the SmartPBX) in order to enable the Personnals Conference Bridges"
"noConfNumbers": "You need to add a Main Conference Number (in the Main number section on the left of the SmartPBX) in order to enable the Personnals Conference Bridges",
"enableVideoConferencing": "Enable Video Conferencing"
},
"do_not_disturb": {
"headline": "User DND Settings",


+ 16
- 0
submodules/users/users.js View File

@ -2102,6 +2102,20 @@ define(function(require) {
if (monster.ui.valid(featureForm)) {
data.conference = monster.ui.getFormData('conferencing_form');
if (data.conference.enable_video_conferencing) {
data.conference = _.merge(data.conference, {
profile_name: 'verto',
caller_controls: 'verto-participant',
moderator_controls: 'verto-moderator'
});
} else {
delete data.conference.profile_name;
delete data.conference.caller_controls;
delete data.conference.moderator_controls;
}
delete data.conference.enable_video_conferencing;
if (switchFeature.prop('checked')) {
self.usersUpdateConferencing(data, function(data) {
args.userId = data.user.id;
@ -2125,6 +2139,8 @@ define(function(require) {
},
usersFormatConferencingData: function(data) {
data.conference.enable_video_conferencing = _.has(data, 'conference.profile_name');
return data;
},


+ 8
- 0
submodules/users/views/feature-conferencing.html View File

@ -30,6 +30,14 @@
{{ i18n.users.conferencing.pinLabel }}
<input required id="pin" type="text" name="conference_numbers[]" class="input-small" value="{{conference.conference_numbers.[0]}}"></input>
</div>
<div class="main-line">
<label class="fix-left">
{{#monsterCheckbox i18n.users.conferencing.enableVideoConferencing}}
<input type="checkbox" name="enable_video_conferencing"{{#if conference.enable_video_conferencing}} checked{{/if}}></input>
{{/monsterCheckbox}}
</label>
</div>
</form>
{{#monsterText}}


Loading…
Cancel
Save