app/docker/views/nodes/node-details/node-details-view-controller.js
Function NodeDetailsViewController
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function NodeDetailsViewController($q, $stateParams, NodeService, StateManager, AgentService, Authentication, Notifications) {
var ctrl = this;
ctrl.$onInit = initView;
Function initView
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initView() {
var applicationState = StateManager.getState();
ctrl.state.isAgent = applicationState.endpoint.mode.agentProxy;
ctrl.state.isAdmin = Authentication.isAdmin();
ctrl.state.enableHostManagementFeatures = ctrl.endpoint.SecuritySettings.enableHostManagementFeatures;