diff --git a/apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js b/apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js index 9f86643aefb8f1829a6817e3b5791257cacf4cac..0630671c97b807b45c72813ab3b61dedb4d8685e 100644 --- a/apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js +++ b/apollo-portal/src/main/resources/static/scripts/directive/namespace-panel-directive.js @@ -65,7 +65,7 @@ directive_module.directive('apollonspanel', function initNamespace(namespace, viewType) { namespace.showSearchInput = false; - namespace.sourceItems = namespace.items; + namespace.viewItems = namespace.items; namespace.isPropertiesFormat = namespace.format == 'properties'; namespace.isTextEditing = false; namespace.instanceViewType = namespace_instance_view_type.LATEST_RELEASE; @@ -345,7 +345,7 @@ directive_module.directive('apollonspanel', function parseModel2Text(namespace) { - if (namespace.sourceItems.length == 0) { + if (namespace.items.length == 0) { namespace.itemCnt = MIN_ROW_SIZE; return ""; } @@ -360,7 +360,7 @@ directive_module.directive('apollonspanel', } function parseNotPropertiesText(namespace) { - var text = namespace.sourceItems[0].item.value; + var text = namespace.items[0].item.value; var lineNum = text.split("\n").length; namespace.itemCnt = lineNum < MIN_ROW_SIZE ? MIN_ROW_SIZE : lineNum; return text; @@ -369,7 +369,7 @@ directive_module.directive('apollonspanel', function parsePropertiesText(namespace) { var result = ""; var itemCnt = 0; - namespace.sourceItems.forEach(function (item) { + namespace.items.forEach(function (item) { //deleted key if (!item.item.dataChangeLastModifiedBy) { return; @@ -398,13 +398,13 @@ directive_module.directive('apollonspanel', function searchItems(namespace) { var searchKey = namespace.searchKey.toLowerCase(); var items = []; - namespace.sourceItems.forEach(function (item) { + namespace.items.forEach(function (item) { var key = item.item.key; if (key && key.toLowerCase().indexOf(searchKey) >= 0){ items.push(item); } }); - namespace.items = items; + namespace.viewItems = items; } function lockCheck(namespace) { diff --git a/apollo-portal/src/main/resources/static/views/component/namespace-panel.html b/apollo-portal/src/main/resources/static/views/component/namespace-panel.html index d2dbd566309e7239f49f482c6a854ef7a081dbdb..0d923bc4d5a67be44b1403edb4fddd7d6d9399b2 100644 --- a/apollo-portal/src/main/resources/static/views/component/namespace-panel.html +++ b/apollo-portal/src/main/resources/static/views/component/namespace-panel.html @@ -176,7 +176,7 @@ -