YangUI - quickfix operational list form 14/48414/4
authorStanislav Jamrich <sjamrich@cisco.com>
Wed, 16 Nov 2016 14:42:32 +0000 (15:42 +0100)
committerStanislav Jamrich <sjamrich@cisco.com>
Mon, 28 Nov 2016 12:15:39 +0000 (13:15 +0100)
Yangman - fix mountpoint disconnect
Yangman - fix loading Yin schemas for mountpoints

Change-Id: Iab7db6ebde074bffe5d5fe2fc5f0d7651d55da4f
Signed-off-by: Stanislav Jamrich <sjamrich@cisco.com>
Signed-off-by: Daniel Malachovsky <dmalacho@cisco.com>
modules/common-yangutils-resources/src/main/resources/yangutils/services/yin-parser.services.js
modules/yangman-resources/src/main/resources/yangman/services/plugins-unsetter.services.js
modules/yangui-resources/src/main/resources/yangui/controllers/api/list.controller.js
modules/yangui-resources/src/main/resources/yangui/controllers/yangui.controller.js

index c1f32d6c87332a32f4bfd7852379fb7702d10212..3f2fe4deecc6e35243fb3ba276b810550fbb4bb6 100644 (file)
@@ -27,8 +27,8 @@ define([], function () {
 
             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);
                     }
index 347ae5386105a54a993d7d8341a858d28681b74b..e861d1b7878481f242c5ec515a843b6340dce2cb 100644 (file)
@@ -1,12 +1,11 @@
 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,
index 4780fff22a8e816e4b90de23b36cee09ff7b222e..42b00943eb65dcc9e5ccbe70ab076d0eb3ea6f37 100644 (file)
@@ -51,15 +51,10 @@ define([], function () {
             }
         };
 
-
         function toggleExpandedAugModal(){
             $scope.augModalView = !$scope.augModalView;
         }
 
-        $scope.$on('EV_DISABLE_ADDING_LIST_ELEMENT', function() {
-            $scope.init();
-        });
-
         function refreshListIndex() {
             $scope.currentDisplayIndex = 1;
         }
index e004211cfbf58947c2fe9c55a982675ca305d2b0..751e4fb70f5996b3b0c84c5a0b6d269ffacc572c 100644 (file)
@@ -392,7 +392,8 @@ define(
                     $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);