Skip to content

Commit

Permalink
Ensure kve does not render on browser builds if no envs to show
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminapetersen committed Aug 31, 2017
1 parent 04d694f commit 0c06867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/browse/build.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ <h3>Environment Variables</h3>
Environment variables can be edited on the <a ng-href="{{build | configURLForResource}}?tab=environment">build configuration</a>.
</p>
<key-value-editor
ng-if="(build | buildStrategy).env | size"
entries="(build | buildStrategy).env"
key-placeholder="Name"
value-placeholder="Value"
Expand Down
2 changes: 1 addition & 1 deletion dist/scripts/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"<span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
"Environment variables can be edited on the <a ng-href=\"{{build | configURLForResource}}?tab=environment\">build configuration</a>.\n" +
"</p>\n" +
"<key-value-editor entries=\"(build | buildStrategy).env\" key-placeholder=\"Name\" value-placeholder=\"Value\" cannot-add cannot-delete cannot-sort is-readonly show-header class=\"mar-bottom-xl block\"></key-value-editor>\n" +
"<key-value-editor ng-if=\"(build | buildStrategy).env | size\" entries=\"(build | buildStrategy).env\" key-placeholder=\"Name\" value-placeholder=\"Value\" cannot-add cannot-delete cannot-sort is-readonly show-header class=\"mar-bottom-xl block\"></key-value-editor>\n" +
"<p ng-if=\"!(build | buildStrategy).env\"><em>The build strategy had no environment variables defined.</em></p>\n" +
"</uib-tab>\n" +
"<uib-tab active=\"selectedTab.logs\" ng-if=\"!(build | isJenkinsPipelineStrategy) && ('builds/log' | canI : 'get')\">\n" +
Expand Down

0 comments on commit 0c06867

Please sign in to comment.