From b41ea1a4149098ea59c12006d554b0b83f5f162c Mon Sep 17 00:00:00 2001 From: efernandez Date: Fri, 1 Mar 2019 17:55:19 -0300 Subject: [PATCH] code review --- src/js/controller.js | 2 +- src/js/service.js | 43 ------------------------------------------- 2 files changed, 1 insertion(+), 44 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 7fe7a88..5423a19 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -17,7 +17,7 @@ angular.module('focaGestionTerminal') netTesting.ping($scope.empresa.url, function() { - if(arguments[1] === 'disconnected') { + if (arguments[1] === 'disconnected') { $scope.mensaje = "La url indicada no tiene conección"; return; } diff --git a/src/js/service.js b/src/js/service.js index 63e831c..a172e8f 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -1,49 +1,6 @@ angular.module('focaGestionTerminal') .factory('gestionTerminalService', ['endpoint', '$http', function(endpoint, $http) { return { - getTerminalSet: function() { - return [ - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - }, - { - terminalKey: 'fa651v65aa65d1', - urlDireccion: 'debonline.dyndns.com:9900' - } - ] - }, - getTerminarRequest: function() { - return [ - { - terminalKey: 'cSB156B6SC51B' - } - ] - }, getEmpresas: function() { return $http.get(endpoint + '/empresa/listar'); }, -- 1.9.1