Skip to content

Commit 097b1da

Browse files
committed
Bug 1368072 Dont show Start Build if BC doesnt exist
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1368072
1 parent 339a32e commit 097b1da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/browse/build-config.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h1>
7272
<div ng-if="!unfilteredBuilds" class="gutter-bottom">Loading...</div>
7373

7474
<!-- Show an empty state message when there are no builds. -->
75-
<div ng-if="unfilteredBuilds && (unfilteredBuilds | hashSize) === 0" class="empty-state-message text-center">
75+
<div ng-if="buildConfig && unfilteredBuilds && (unfilteredBuilds | hashSize) === 0" class="empty-state-message text-center">
7676
<h2>No builds.</h2>
7777

7878
<p>

dist/scripts/templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
17331733
"\n" +
17341734
"<div ng-if=\"!unfilteredBuilds\" class=\"gutter-bottom\">Loading...</div>\n" +
17351735
"\n" +
1736-
"<div ng-if=\"unfilteredBuilds && (unfilteredBuilds | hashSize) === 0\" class=\"empty-state-message text-center\">\n" +
1736+
"<div ng-if=\"buildConfig && unfilteredBuilds && (unfilteredBuilds | hashSize) === 0\" class=\"empty-state-message text-center\">\n" +
17371737
"<h2>No builds.</h2>\n" +
17381738
"<p>\n" +
17391739
"<span ng-if=\"!('buildconfigs/instantiate' | canI : 'create')\">\n" +

0 commit comments

Comments
 (0)