diff --git a/src/js/controller.js b/src/js/controller.js index a5eeea4..375bc03 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -79,5 +79,21 @@ angular.module('focaInformes') focaBotoneraLateralService.showTeclado(true); }); }; + $scope.seleccionarInformeDeRepartoÓptimoDetallado = function() { + focaBotoneraLateralService.showTeclado(false); + $uibModal.open( + { + ariaLabelledBy: 'Informe de reparto óptimo detallado', + templateUrl: 'informe-reparto-optimo.html', + controller: 'focaModalInformeRepartoOptimoController', + size: 'xl' + } + ) + .result.then(function(){ + focaBotoneraLateralService.showTeclado(true); + }, function(){ + focaBotoneraLateralService.showTeclado(true); + }); + }; } ]); diff --git a/src/js/service.js b/src/js/service.js index 2408588..9801a14 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -18,6 +18,10 @@ angular.module('focaInformes') { label: 'Informe general por unidad de reparto', image: 'flete.png' + }, + { + label: 'Informe de reparto óptimo detallado', + image: 'flete.png' } ]; return result;