Commit f8af67032a8f8c6725d9c57beccc4e5c3a9e7256

Authored by Jose Pinto
1 parent a9fd099a59
Exists in master and in 1 other branch develop

limpia cisternas al salir de un vehiculo

Showing 2 changed files with 5 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -11,6 +11,8 @@ angular.module('focaAbmVehiculo')
11 11 image: 'cliente.png'
12 12 }];
13 13  
  14 + focaAbmVehiculoService.cleanCisternas();
  15 +
14 16 //SETEO BOTONERA LATERAL
15 17 focaBotoneraLateralService.showSalir(false);
16 18 focaBotoneraLateralService.showPausar(false);
... ... @@ -45,6 +45,9 @@ angular.module('focaAbmVehiculo')
45 45 deleteCisterna: function(idx) {
46 46 cisternas[idx].desactivado = true;
47 47 },
  48 + cleanCisternas: function() {
  49 + cisternas = [];
  50 + },
48 51 getVehiculosPorTransportista: function(id) {
49 52 return $http.get(API_ENDPOINT.URL + '/vehiculo/transportista/' + id);
50 53 },