Hide "Start Build" button in builds tab if not accessible

While the build cannot be started, and, in fact, the only way to see the button is to *manually* set the `tab=` query param, better to hide it

Fixes https://jira.coreos.com/browse/QS-67
This commit is contained in:
Joseph Schorr 2017-11-27 12:02:07 +02:00
parent 01bedf6150
commit 7a8850289e

View file

@ -1,7 +1,8 @@
<div class="repo-panel-builds-element">
<div class="feedback-bar" feedback="feedback"></div>
<div class="tab-header-controls">
<button class="btn btn-primary" ng-click="showNewBuildDialog()" ng-if="!repository.tag_operations_disabled">
<button class="btn btn-primary" ng-click="showNewBuildDialog()" ng-if="!repository.tag_operations_disabled"
quay-show="repository.can_write && Features.BUILD_SUPPORT">
<i class="fa fa-play"></i> Start New Build
</button>
</div>