FS-8018 [verto_communicator] separation of concerns. Get storage service to manage all settings instead of vertoService.

This commit is contained in:
Joao Mesquita committed 2015-08-27 19:00:43 -03:00
1 parent ac945c012a
commit 6a6d2ae8d6
5 files changed
+47 -107

No files matched your search

@@ -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.');
};