fix(ui): correct logger import in edit-gateway
MODIFY
manager/ui/war/plugins/api-manager/ts/forms/edit-gateway.ts
manager/ui/war/plugins/api-manager/ts/forms/edit-gateway.ts
import {_module} from "../apimanPlugin";
-import Logger from "js-logger";
import angular = require("angular");
_module.controller("Apiman.EditGatewayController",
- ['$location', '$q', '$rootScope', '$routeParams', '$scope', '$uibModal', 'ApimanSvcs', 'PageLifecycle',
- function ($location, $q, $rootScope, $routeParams, $scope, $uibModal, ApimanSvcs, PageLifecycle) {
+ ['$location', '$q', '$rootScope', '$routeParams', '$scope', '$uibModal', 'ApimanSvcs', 'PageLifecycle', 'Logger',
+ function ($location, $q, $rootScope, $routeParams, $scope, $uibModal, ApimanSvcs, PageLifecycle, Logger) {
$scope.isValid = false;
var params = $routeParams;
@@ -70,7 +69,7 @@ _module.controller("Apiman.EditGatewayController",
var gateway = Gateway();
ApimanSvcs.update({ entityType: 'gateways' }, gateway, function(reply) {
$scope.testButton.state = 'complete';
- if (reply.success == true) {
+ if (reply.success === true) {
Logger.info('Connected successfully to Gateway: {0}', reply.detail);
$scope.testResult = 'success';
} else {

fix(ui): correct logger import in edit-gateway