FS-7979: [verto_communicator] Prompt for extension before transferring a conference member.

This commit is contained in:
João Mesquita 2015-08-26 22:08:46 -03:00
parent 3ba29f7f0e
commit 4621b3ff89
2 changed files with 15 additions and 5 deletions

View File

@ -4,9 +4,9 @@
angular angular
.module('vertoControllers') .module('vertoControllers')
.controller('ChatController', ['$scope', '$rootScope', '$http', .controller('ChatController', ['$scope', '$rootScope', '$http',
'$location', '$anchorScroll', '$timeout', 'verto', '$location', '$anchorScroll', '$timeout', 'verto', 'prompt',
function($scope, $rootScope, $http, $location, $anchorScroll, $timeout, function($scope, $rootScope, $http, $location, $anchorScroll, $timeout,
verto) { verto, prompt) {
console.debug('Executing ChatController.'); console.debug('Executing ChatController.');
function scrollToChatBottom() { function scrollToChatBottom() {
@ -183,8 +183,18 @@
$scope.confTransfer = function(memberID) { $scope.confTransfer = function(memberID) {
console.log('$scope.confTransfer'); console.log('$scope.confTransfer');
var exten = '1800'; prompt({
verto.data.conf.transfer(memberID, exten); title: 'Transfer party?',
message: 'To what destination would you like to transfer this call?',
input: true,
label: 'Destination',
value: '',
}).then(function(exten) {
if (exten) {
console.log(arguments);
verto.data.conf.transfer(memberID, exten);
}
});
}; };
} }
]); ]);

View File

@ -430,7 +430,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
if (data.liveArray) { if (data.liveArray) {
console.log('Has data.liveArray.'); console.log('Has data.liveArray.');
$rootScope.$emit('members.clear'); $rootScope.$emit('members.clear');
data.liveArray.destroy(); // data.liveArray.destroy();
data.liveArray = null; data.liveArray = null;
} else { } else {
console.log('Doesn\'t found data.liveArray.'); console.log('Doesn\'t found data.liveArray.');