mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 14:28:34 +00:00
FS-8018 [verto_communicator] separation of concerns. Get storage service to manage all settings instead of vertoService.
This commit is contained in:
1 parent
ac945c012a
commit
6a6d2ae8d6
5 files changed
+47
-107
No files matched your search
+5
-5
@@ -4,16 +4,16 @@
|
||||
angular
|
||||
.module('vertoControllers')
|
||||
.controller('ModalSettingsController', ['$scope', '$http',
|
||||
'$location', '$modalInstance', 'verto', 'storage',
|
||||
function($scope, $http, $location, $modalInstance, verto, storage) {
|
||||
'$location', '$modalInstance', 'storage', 'verto',
|
||||
function($scope, $http, $location, $modalInstance, storage, verto) {
|
||||
console.debug('Executing ModalSettingsController.');
|
||||
|
||||
verto.changeData(storage);
|
||||
$scope.verto = verto;
|
||||
$scope.storage = storage;
|
||||
$scope.verto = verto;
|
||||
$scope.mydata = angular.copy(storage.data);
|
||||
|
||||
$scope.ok = function() {
|
||||
storage.changeData(verto);
|
||||
storage.changeData($scope.mydata);
|
||||
$modalInstance.close('Ok.');
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user