Skip to content

Commit

Permalink
Merge pull request #1970 from benjaminapetersen/bpeterse/hide-kve-on-…
Browse files Browse the repository at this point in the history
…build-if-no-envs

Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Sep 13, 2017
2 parents f446b03 + 6c73175 commit b16134b
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 @@ -99,6 +99,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 @@ -2114,7 +2114,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 b16134b

Please sign in to comment.