|
771 | 771 | return newType; |
772 | 772 | }; |
773 | 773 |
|
| 774 | + var isPattern = function (propertyName) { |
| 775 | + return propertyName.match(PATTERN_PATTERN); |
| 776 | + }; |
| 777 | + |
| 778 | + $scope.isPropertyVisible = function(property) { |
| 779 | + return ($scope.showSecuritySchemaProperties || !property[0].isFromSecurityScheme) |
| 780 | + && !isPattern(property[0].displayName); |
| 781 | + }; |
| 782 | + |
774 | 783 | $scope.mergeType = function (type) { |
775 | 784 | var newType = angular.copy(type); |
776 | 785 |
|
|
782 | 791 |
|
783 | 792 | $scope.isNativeType = RAML.Inspector.Types.isNativeType; |
784 | 793 |
|
785 | | - $scope.isPattern = function (propertyName) { |
786 | | - return propertyName.match(PATTERN_PATTERN); |
787 | | - }; |
788 | | - |
789 | 794 | $scope.isSchema = RAML.Inspector.Types.isSchema; |
790 | 795 |
|
791 | 796 | $scope.isCollapsible = function isCollapsible(property) { |
@@ -6514,7 +6519,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache) |
6514 | 6519 | " <li class=\"raml-console-documentation-scheme\" ng-class=\"{'raml-console-is-active':isSchemeSelected(value)}\" ng-click=\"selectDocumentationScheme(value)\" ng-repeat=\"(key, value) in securitySchemes\">{{value.name}}</li>\n" + |
6515 | 6520 | " </ol>\n" + |
6516 | 6521 | "\n" + |
6517 | | - " <p ng-if\"documentationSchemeSelected.description\" markdown=\"documentationSchemeSelected.description\" class=\"raml-console-marked-content\"></p>\n" + |
| 6522 | + " <p ng-if=\"documentationSchemeSelected.description\" markdown=\"documentationSchemeSelected.description\" class=\"raml-console-marked-content\"></p>\n" + |
6518 | 6523 | "\n" + |
6519 | 6524 | " <section class=\"raml-console-resource-section raml-console-scheme-headers\" ng-if=\"documentationSchemeSelected.describedBy.headers\">\n" + |
6520 | 6525 | " <h4 class=\"raml-console-resource-heading-a\">Headers</h4>\n" + |
@@ -6724,7 +6729,7 @@ angular.module('ramlConsoleApp').run(['$templateCache', function($templateCache) |
6724 | 6729 | $templateCache.put('directives/properties.tpl.html', |
6725 | 6730 | "<div>\n" + |
6726 | 6731 | " <div class=\"raml-console-resource-param\" ng-repeat=\"property in listArray\"\n" + |
6727 | | - " ng-if=\"(showSecuritySchemaProperties || !property[0].isFromSecurityScheme) && !isPattern(property[0].displayName)\"\n" + |
| 6732 | + " ng-if=\"isPropertyVisible(property)\"\n" + |
6728 | 6733 | " ng-init=\"vm.isCollapsed = !!collapsible\">\n" + |
6729 | 6734 | " <div ng-init=\"type = getType(property[0])\">\n" + |
6730 | 6735 | " <h4 class=\"raml-console-resource-param-heading\" style=\"position: relative\">\n" + |
|
0 commit comments