Merge pull request #424 in FS/freeswitch from ~JMESQUITA/freeswitch:bugfix/FS-7945-setting-banner-doesn-t-prompt-for to master
* commit '931fcbda03bd3af3900720e681497636faec9cda': FS-7945 [Verto-Communicator] #resolve Use angular-prompt to ask the user to enter a text for the banner. If cancelled, nothing is done.
This commit is contained in:
commit
ae76f4a0c1
|
@ -462,9 +462,9 @@ vertoControllers.controller('MainController', ['$scope', '$rootScope',
|
|||
|
||||
|
||||
vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http',
|
||||
'$location', '$anchorScroll', '$timeout', 'toastr', 'verto', 'storage',
|
||||
'$location', '$anchorScroll', '$timeout', 'toastr', 'verto', 'storage', 'prompt',
|
||||
function($scope, $rootScope, $http, $location, $anchorScroll, $timeout,
|
||||
toastr, verto, storage) {
|
||||
toastr, verto, storage, prompt) {
|
||||
console.debug('Executing ChatController.');
|
||||
|
||||
function scrollToChatBottom() {
|
||||
|
@ -643,8 +643,15 @@ vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http',
|
|||
|
||||
$scope.confBanner = function(memberID) {
|
||||
console.log('$scope.confBanner');
|
||||
var text = 'New Banner';
|
||||
prompt({
|
||||
title: 'Participant banner',
|
||||
message: 'What would you like the banner to say?',
|
||||
input: true,
|
||||
label: 'Text',
|
||||
value: 'New text'
|
||||
}).then(function(text){
|
||||
verto.data.conf.banner(memberID, text);
|
||||
});
|
||||
};
|
||||
|
||||
$scope.confVolumeDown = function(memberID) {
|
||||
|
|
Loading…
Reference in New Issue