Commit 83f760e74916a2523696393bb34d2624c7341432
Exists in
master
and in
2 other branches
Merge branch 'master' into 'master'
arreglo en la muestra del terminalkey See merge request modulos-npm/foca-botonera-principal!9
Showing
1 changed file
Show diff stats
src/js/controller.js
| 1 | 1 | angular.module('focaBotoneraPrincipal') |
| 2 | 2 | .controller('focaBotoneraPrincipalController', [ |
| 3 | - '$scope', '$location', '$cookies', 'botones', 'focaModalService', 'APP', | |
| 4 | - function($scope, $location, $cookies, botones, focaModalService, APP) { | |
| 3 | + '$scope', '$location', '$localStorage', 'botones', 'focaModalService', 'APP', | |
| 4 | + function($scope, $location, $localStorage, botones, focaModalService, APP) { | |
| 5 | 5 | $scope.paginas = []; |
| 6 | 6 | if(APP === 'distribuidor') { |
| 7 | 7 | $scope.paginas.push(botones.data.slice(0, 3)); |
| ... | ... | @@ -19,7 +19,7 @@ angular.module('focaBotoneraPrincipal') |
| 19 | 19 | }; |
| 20 | 20 | |
| 21 | 21 | $scope.showTerminal = function() { |
| 22 | - var key = $cookies.get('terminalKey'); | |
| 22 | + var key = $localStorage.terminalKey; | |
| 23 | 23 | focaModalService.alert('SU TERMINAL ES: ' + key); |
| 24 | 24 | }; |
| 25 | 25 | } |