if ( $scope.selectedDatastore && (module === $scope.selectedModule)) {
haveSelectedDS = $scope.selectedModule.children.filter(function(item){
- return item === $scope.selectedDatastore;
+ return item === $scope.selectedDatastore;
});
}
$scope.setGlobalParams(apis, augGroups);
modulesList.allNodes = allNodes;
modulesList.treeApis = YangUtilsService.generateApiTreeData(apis);
- // $scope.processingModulesSuccessCallback();
modulesList.showLoadingBox = false;
showToastInfoBox('YANGMAN_LOADED_MODULES');
PluginsHandlerService.plugAll(apis, modulesList);
- // $scope.$broadcast('LOAD_REQ_DATA');
}, function () {
showToastInfoBox('YANGMAN_LOADED_MODULES_ERROR');
modulesList.showLoadingBox = false;
function setModule(module, e){
if ( $(e.target).hasClass('top-element') ) {
module.expanded = !module.expanded;
- //$scope.setModule(module);
}
}
}, 500);
}
}
-
});
} else {
$scope.setJsonView(true, false);
}
-
- // sendRequestData({}, 'RECEIVED');
}
/**
}
- function finishRequestProgress (message){
+ function finishRequestProgress(message){
$scope.rootBroadcast('YANGMAN_EXECUTING_REQUEST_PROGRESS_STOP');
- // $mdToast.show(
- // $mdToast.simple()
- // .textContent(message)
- // .position('bottom right')
- // .parent(angular.element('.yangmanModule__right-panel__header'))
- // .hideDelay(1500)
- // );
}
-
/**
* Execute request operation
*/
$scope.rootBroadcast('YANGMAN_SELECT_THE_NEWEST_REQUEST');
});
- //setNodeDataFromRequestData(requestHeader.requestUrl);
-
if (response.data) {
// try to fill code mirror editor
sendRequestData(response.data, constants.REQUEST_DATA_TYPE_RECEIVED);
vm.deselectAllRequests = deselectAllRequests;
vm.filterCollReq = filterCollReq;
-
-
-
/**
* Save request obje to collection from other controller
* @param reqObj
YangFormCtrl.$inject = ['$scope', '$rootScope', '$filter', 'constants', 'YangUtilsService'];
- function YangFormCtrl($scope, $rootScope, $filter, constants, YangUtilsService) {
+ function YangFormCtrl($scope, $rootScope, $filter, constants) {
var yangForm = this;
yangForm.viewPath = $scope.globalViewPath + 'rightpanel/form';
if ( expand ) {
$scope.node = null;
- // toggleLeftPanel(leftPanel);
setLeftPanel(leftPanel);
$scope.$broadcast('YANGMAN_MODULE_D_INIT');
} else {
service.createEmptyParametersList = createEmptyParametersList;
service.createParameter = createParameter;
- // service.validateFile = validateFile;
+ service.validateFile = validateFile;
/**
* Validating collection import file
*/
function createHistoryRequest(sentData, receivedData, path, operation, status, name, collection, timestamp,
responseStatus, responseStatusText, responseTime) {
- // TODO: investigate, if this line is needed
- // var receivedDataProcessed = status === 'success' ? receivedData : null,
var result = new HistoryRequestModel(PathUtilsService, YangUtilsService, ParsingJsonService);
timestamp = timestamp || Date.now();
handles: 'e',
minWidth: 300,
stop: function(event, ui) {
- if (typeof(Storage) !== "undefined") {
+ if (typeof(Storage) !== 'undefined') {
localStorage.setItem('yangman__left-panel-width', ui.size.width);
}
},
<div class="paramsBox" ng-show="requestData.paramsArray.length">
<div ng-repeat="param in requestData.paramsArray" class="line">
- <strong><<{{param.name}}>></strong> : <span>{{param.value !== undefined ? param.value : 'YANGUI_PARAM_DONT_REPLACE' | translate}}</span>
+ <strong><<{{param.name}}>></strong> : <span>{{param.value !== undefined ? param.value : 'YANGUI_PARAM_DONT_REPLACE' | translate}}</span>
</div>
</div>
<md-input-container flex md-no-float ng-if="rightPanelSection === requestHeader.constants.DISPLAY_TYPE_REQ_DATA">
<input type="text"
ng-model="requestHeader.requestUrl"
- placeholder="{{'YANGMAN_REQ_URL' | translate}}">
+ placeholder="{{'YANGMAN_REQ_URL' | translate}}"
+ spellcheck="false">
</md-input-container>
<div ng-repeat="pathElem in selectedSubApi.pathArray"
}
}
-
- .selected{
- button{
- //background-color: rgba(158,158,158,0.2);
- }
- }
-
}
&__collections-list{
padding: 0;
background: @listBackColor;
height: 100%;
-
- .selected{
- button{
- //background-color: rgba(158,158,158,0.2);
- }
- }
}
&__collection{