Commit ff487d865e8cad56c04e4ca22140bac74a4998f8
Exists in
master
Merge branch 'master' into 'master'
10 elementos en swiper, agrego componente botonera See merge request !1
Showing
4 changed files
Show diff stats
package.json
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | "gulp-uglify": "^3.0.1", |
34 | 34 | "jquery": "^3.3.1", |
35 | 35 | "pump": "^3.0.0", |
36 | - "foca-modal": "git+https://debo.suite.repo/modulos-npm/foca-modal.git" | |
36 | + "foca-modal": "git+http://git.focasoftware.com/npm/foca-modal.git" | |
37 | 37 | }, |
38 | 38 | "devDependencies": { |
39 | 39 | "angular": "^1.7.5", |
... | ... | @@ -55,6 +55,6 @@ |
55 | 55 | "pre-commit": "^1.2.2", |
56 | 56 | "pump": "^3.0.0", |
57 | 57 | "ui-bootstrap4": "^3.0.5", |
58 | - "foca-modal": "git+https://debo.suite.repo/modulos-npm/foca-modal.git" | |
58 | + "foca-modal": "git+http://git.focasoftware.com/npm/foca-modal.git" | |
59 | 59 | } |
60 | 60 | } |
src/js/app.js
src/js/controller.js
1 | 1 | angular.module('focaBotoneraPrincipal') |
2 | 2 | .controller('focaBotoneraPrincipalController', [ |
3 | - '$scope', '$location', '$localStorage', 'botones', 'focaModalService', 'APP', | |
4 | - function($scope, $location, $localStorage, botones, focaModalService, APP) { | |
3 | + '$scope', '$rootScope', '$timeout', '$location', '$localStorage', | |
4 | + 'botones', 'focaModalService', 'APP', 'focaBotoneraLateralService', | |
5 | + function($scope, $rootScope, $timeout, $location, $localStorage, | |
6 | + botones, focaModalService, APP, focaBotoneraLateralService) { | |
5 | 7 | $scope.paginas = []; |
6 | - var botonesPorPagina = 12; | |
8 | + var botonesPorPagina = 10; | |
7 | 9 | if(APP === 'distribuidor' || APP === 'transportista') { |
8 | 10 | botonesPorPagina = 3; |
9 | 11 | } |
... | ... | @@ -11,6 +13,10 @@ angular.module('focaBotoneraPrincipal') |
11 | 13 | $scope.paginas.push(botones.data.slice(i, i + botonesPorPagina)); |
12 | 14 | } |
13 | 15 | |
16 | + focaBotoneraLateralService.showGuardar(false); | |
17 | + focaBotoneraLateralService.showPausar(false); | |
18 | + focaBotoneraLateralService.showSalir(false); | |
19 | + | |
14 | 20 | $scope.irA = function(accion) { |
15 | 21 | $location.path(accion); |
16 | 22 | }; |
src/views/foca-botonera-principal.html