Commit 28c80dd1409f7192b1fffdba4d410424d6c853cd
1 parent
c61f0efdba
Exists in
master
correccion boton cancelar
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/service.js
1 | angular.module('focaBotoneraLateral') | 1 | angular.module('focaBotoneraLateral') |
2 | .service('focaBotoneraLateralService', function() { | 2 | .service('focaBotoneraLateralService', function() { |
3 | 3 | ||
4 | this.botones = { | 4 | this.botones = { |
5 | salir: false, | 5 | salir: false, |
6 | cancelar: false, | 6 | cancelar: false, |
7 | pausar: false, | 7 | pausar: false, |
8 | guardar: false, | 8 | guardar: false, |
9 | funcionGuardar: undefined, | 9 | funcionGuardar: undefined, |
10 | pathCancelar: undefined | 10 | pathCancelar: undefined |
11 | }; | 11 | }; |
12 | 12 | ||
13 | this.showSalir = function(value) { | 13 | this.showSalir = function(value) { |
14 | this.botones.salir = value; | 14 | this.botones.salir = value; |
15 | }; | 15 | }; |
16 | this.showPausar = function(value) { | 16 | this.showPausar = function(value) { |
17 | this.botones.pausar = value; | 17 | this.botones.pausar = value; |
18 | }; | 18 | }; |
19 | this.showCancelar = function(value, path) { | 19 | this.showCancelar = function(value, path) { |
20 | this.botones.cancelar = value; | 20 | this.botones.cancelar = value; |
21 | if(path) this.botones.pathCancelar = path; | 21 | this.botones.pathCancelar = (path) ? path : undefined; |
22 | }; | 22 | }; |
23 | this.showGuardar = function(value, funcion) { | 23 | this.showGuardar = function(value, funcion) { |
24 | this.botones.guardar = value; | 24 | this.botones.guardar = value; |
25 | if(value) this.botones.funcionGuardar = funcion; | 25 | if(value) this.botones.funcionGuardar = funcion; |
26 | }; | 26 | }; |
27 | 27 | ||
28 | }); | 28 | }); |
29 | 29 |