mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
30 lines
765 B
JavaScript
30 lines
765 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('vertoControllers')
|
|
.controller('ModalSettingsController', ['$scope', '$http',
|
|
'$location', '$modalInstance', 'verto', 'storage',
|
|
function($scope, $http, $location, $modalInstance, verto, storage) {
|
|
console.debug('Executing ModalSettingsController.');
|
|
|
|
verto.changeData(storage);
|
|
$scope.verto = verto;
|
|
$scope.storage = storage;
|
|
|
|
$scope.ok = function() {
|
|
storage.changeData(verto);
|
|
$modalInstance.close('Ok.');
|
|
};
|
|
|
|
$scope.cancel = function() {
|
|
$modalInstance.dismiss('cancel');
|
|
};
|
|
|
|
$scope.refreshDeviceList = function() {
|
|
return verto.refreshDevices();
|
|
}
|
|
}
|
|
]);
|
|
|
|
})(); |