Commit 75c5fa64e7159cb52db475173feeeee3aef25b55
1 parent
fc72e09617
Exists in
master
Alerta al cambiar lista de precios
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -64,8 +64,12 @@ angular.module('focaModalPrecioCondicion') |
64 | 64 | } |
65 | 65 | ], |
66 | 66 | }).then(function (res) { |
67 | - $scope.associatedList = false; | |
68 | - $scope.listaDePreciosAlternativa = res; | |
67 | + focaModalService.confirm('¿Desea cambiar la lista de precios?').then(function (data){ | |
68 | + if (data) { | |
69 | + $scope.associatedList = false; | |
70 | + $scope.listaDePreciosAlternativa = res; | |
71 | + } | |
72 | + }); | |
69 | 73 | }).catch(function (e) { |
70 | 74 | console.error(e); |
71 | 75 | }); |