提交 931fcbda authored 作者: João Mesquita's avatar João Mesquita 提交者: Italo Rossi

FS-7945 [Verto-Communicator] #resolve Use angular-prompt to ask the user to…

FS-7945 [Verto-Communicator] #resolve Use angular-prompt to ask the user to enter a text for the banner. If cancelled, nothing is done.
上级 03656d5c
...@@ -462,9 +462,9 @@ vertoControllers.controller('MainController', ['$scope', '$rootScope', ...@@ -462,9 +462,9 @@ vertoControllers.controller('MainController', ['$scope', '$rootScope',
vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http', 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, function($scope, $rootScope, $http, $location, $anchorScroll, $timeout,
toastr, verto, storage) { toastr, verto, storage, prompt) {
console.debug('Executing ChatController.'); console.debug('Executing ChatController.');
function scrollToChatBottom() { function scrollToChatBottom() {
...@@ -643,8 +643,15 @@ vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http', ...@@ -643,8 +643,15 @@ vertoControllers.controller('ChatController', ['$scope', '$rootScope', '$http',
$scope.confBanner = function(memberID) { $scope.confBanner = function(memberID) {
console.log('$scope.confBanner'); console.log('$scope.confBanner');
var text = 'New Banner'; prompt({
verto.data.conf.banner(memberID, text); 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) { $scope.confVolumeDown = function(memberID) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论