Merge pull request #2916 from coreos-inc/joseph.schorr/QS-67/start-build-bug

Hide "Start Build" button in builds tab if not accessible
This commit is contained in:
josephschorr 2017-11-27 17:01:00 +02:00 committed by GitHub
commit 78d0a7ae79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>