YangUiApisService.getSingleModuleInfo(path)
.then(function (data) {
- if ($.parseXML(data) !== null) {
- parseModule(data, callback);
+ if ($.parseXML(data.data) !== null) {
+ parseModule(data.data, callback);
} else {
loadStaticModule(name, callback, errorCbk);
}
define(['angular'], function (angular) {
'use strict';
- angular.module('app.yangman').service('PluginsUnsetterService',
- ['PathUtilsService', 'DataBackupService', PluginsUnsetterService]);
+ angular.module('app.yangman').service('PluginsUnsetterService', PluginsUnsetterService);
- PluginsUnsetterService.$inject = ['constants'];
+ PluginsUnsetterService.$inject = ['DataBackupService', 'constants'];
- function PluginsUnsetterService(PathUtilsService, DataBackupService, constants){
+ function PluginsUnsetterService(DataBackupService, constants){
var service = {
'YANGMAN_CUST_MOUNT_POINTS': unsetMountPoint,
unset: unset,
}
};
-
function toggleExpandedAugModal(){
$scope.augModalView = !$scope.augModalView;
}
- $scope.$on('EV_DISABLE_ADDING_LIST_ELEMENT', function() {
- $scope.init();
- });
-
function refreshListIndex() {
$scope.currentDisplayIndex = 1;
}
$scope.selectedOperation = $scope.selSubApi.operations[0];
}
- $scope.$broadcast('EV_DISABLE_ADDING_LIST_ELEMENT');
+ // TODO: uncomment this broadcast and check why does it cause adding element to list in operational portion twice
+ //$scope.$broadcast('EV_DISABLE_ADDING_LIST_ELEMENT');
$scope.$broadcast('EV_REFRESH_LIST_INDEX');
DesignUtilsService.triggerWindowResize(100);