提交 871785d6 authored 作者: Davide Colombo's avatar Davide Colombo

FS-8945 - [verto_communicator] don't show preview settings during video call

上级 095e1f7b
......@@ -35,7 +35,7 @@
</select>
</div>
<a class="btn btn-primary" href="#/preview" ng-click="ok()">Preview Settings</a>
<a class="btn btn-primary" href="" ng-click="showPreview()">Preview Settings</a>
<a class="btn btn-primary" href="" ng-click="refreshDeviceList()">Refresh device list</a>
<div class="form-group">
......
......@@ -4,8 +4,8 @@
angular
.module('vertoControllers')
.controller('ModalSettingsController', ['$scope', '$http',
'$location', '$modalInstance', '$rootScope', 'storage', 'verto',
function($scope, $http, $location, $modalInstance, $rootScope, storage, verto) {
'$location', '$modalInstance', '$rootScope', 'storage', 'verto', 'toastr',
function($scope, $http, $location, $modalInstance, $rootScope, storage, verto, toastr) {
console.debug('Executing ModalSettingsController.');
$scope.storage = storage;
......@@ -35,6 +35,17 @@
return verto.refreshDevices();
};
$scope.showPreview = function() {
$modalInstance.close('Ok.');
if (!verto.data.call) {
$location.path('/preview');
return;
}
else {
toastr.warning('Can\'t display preview settings during a call');
}
};
$scope.testSpeed = function() {
return verto.testSpeed(cb);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论