forked from Mirrors/freeswitch
FS-9552 add to verto communicator toggle deaf status button
This commit is contained in:
parent
9698187cb8
commit
5941a60266
@ -1298,6 +1298,14 @@
|
||||
this.modCommand("stop", null, "all");
|
||||
};
|
||||
|
||||
$.verto.conf.prototype.deaf = function(memberID) {
|
||||
this.modCommand("deaf", parseInt(memberID));
|
||||
};
|
||||
|
||||
$.verto.conf.prototype.undeaf = function(memberID) {
|
||||
this.modCommand("undeaf", parseInt(memberID));
|
||||
};
|
||||
|
||||
$.verto.conf.prototype.record = function(file) {
|
||||
this.modCommand("recording", null, ["start", file]);
|
||||
};
|
||||
|
@ -145,10 +145,13 @@
|
||||
"CHAT_TITLE_VOL_PLUS": "Volume +",
|
||||
"CHAT_TITLE_GAIN_MINUS": "Gain -",
|
||||
"CHAT_TITLE_GAIN_PLUS": "Gain +",
|
||||
"CHAT_TITLE_DEAF_UNDEAF": "Deaf/Undeaf",
|
||||
"CHAT_VOL_MINUS": "Vol -",
|
||||
"CHAT_VOL_PLUS": "Vol +",
|
||||
"CHAT_GAIN_MINUS": "Gain -",
|
||||
"CHAT_GAIN_PLUS": "Gain +",
|
||||
"CHAT_DEAF": "Deaf",
|
||||
"CHAT_UNDEAF": "Undeaf",
|
||||
"LANGUAGE": "Language:",
|
||||
"BROWSER_LANGUAGE": "Browser Language",
|
||||
"FACTORY_RESET_SETTINGS": "Factory Reset Settings",
|
||||
|
@ -145,10 +145,13 @@
|
||||
"CHAT_TITLE_VOL_PLUS": "Volume +",
|
||||
"CHAT_TITLE_GAIN_MINUS": "Ganho -",
|
||||
"CHAT_TITLE_GAIN_PLUS": "Ganho +",
|
||||
"CHAT_TITLE_DEAF_UNDEAF": "Ligar/Desligar Áudio",
|
||||
"CHAT_VOL_MINUS": "Vol -",
|
||||
"CHAT_VOL_PLUS": "Vol +",
|
||||
"CHAT_GAIN_MINUS": "Ganho -",
|
||||
"CHAT_GAIN_PLUS": "Ganho +",
|
||||
"CHAT_DEAF": "Ligar Áudio",
|
||||
"CHAT_UNDEAF": "Desligar Áudio",
|
||||
"FACTORY_RESET_SETTINGS": "Redefinir configurações",
|
||||
"AUTOGAIN_CONTROL": "Controle de Ganho Automático (AGC)"
|
||||
}
|
||||
|
@ -55,7 +55,7 @@
|
||||
|
||||
<div class="admin-controls" ng-if="verto.data.confRole == 'moderator'" ng-show="$index == $parent.openId">
|
||||
<div>
|
||||
<div class="col-md-6 ctrl-section">
|
||||
<div class="col-md-12 ctrl-section">
|
||||
<h3>{{ 'CHAT_GENERAL' | translate }}</h3>
|
||||
<div class="group btn-group-justified">
|
||||
<a href="" class="btn btn-xs" ng-click="confKick(member.id)" title="{{ 'CHAT_TITLE_KICK' | translate }}">
|
||||
@ -70,6 +70,11 @@
|
||||
<i class="mdi-fw mdi-communication-call-made"></i>
|
||||
<span style="margin-left: -9px">{{ 'CHAT_TRANSFER' | translate }}</span>
|
||||
</a>
|
||||
|
||||
<a href="" class="btn btn-xs" ng-click="confToggleDeaf(member)" title="{{ 'CHAT_TITLE_DEAF_UNDEAF' | translate }}">
|
||||
<i class="mdi-fw" ng-class="member.status.audio.deaf ? 'mdi-content-clear' : 'mdi-av-hearing'"></i>
|
||||
{{ member.status.audio.deaf ? 'CHAT_UNDEAF' : 'CHAT_DEAF' | translate }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -333,6 +333,18 @@
|
||||
});
|
||||
};
|
||||
|
||||
$scope.confToggleDeaf = function(member) {
|
||||
if(verto.data.confRole == 'moderator') {
|
||||
console.log('$scope.confToggleDeaf');
|
||||
|
||||
if (member.status.audio.deaf) {
|
||||
verto.data.conf.undeaf(member.id);
|
||||
} else {
|
||||
verto.data.conf.deaf(member.id);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function shortPrompt(text, cb) {
|
||||
prompt({
|
||||
title: text,
|
||||
|
Loading…
Reference in New Issue
Block a user