From 931fcbda03bd3af3900720e681497636faec9cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Mesquita?= Date: Sat, 22 Aug 2015 22:49:40 -0300 Subject: [PATCH] FS-7945 [Verto-Communicator] #resolve Use angular-prompt to ask the user to enter a text for the banner. If cancelled, nothing is done. --- html5/verto/verto_communicator/js/controllers.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/html5/verto/verto_communicator/js/controllers.js b/html5/verto/verto_communicator/js/controllers.js index 15558d8470..4f74661f62 100644 --- a/html5/verto/verto_communicator/js/controllers.js +++ b/html5/verto/verto_communicator/js/controllers.js @@ -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'; - verto.data.conf.banner(memberID, text); + 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) {