Hide build-related UI elements when builds are disabled
Fixes https://jira.coreos.com/browse/QUAY-807
This commit is contained in:
parent
bc8e8f60e7
commit
1b707660de
5 changed files with 18 additions and 9 deletions
|
@ -88,14 +88,14 @@
|
|||
<i class="fa ci-robot"></i> New Robot Account
|
||||
</a>
|
||||
</li>
|
||||
<li role="presentation" class="divider" ng-if="currentPageContext.repository && currentPageContext.repository.can_write && !currentPageContext.repository.tag_operations_disabled"></li>
|
||||
<li role="presentation" class="divider" ng-if="currentPageContext.repository && currentPageContext.repository.can_write && !currentPageContext.repository.tag_operations_disabled && Features.BUILD_SUPPORT"></li>
|
||||
<li role="presentation" class="dropdown-header"
|
||||
ng-if="currentPageContext.repository && currentPageContext.repository.can_write &&
|
||||
!currentPageContext.repository.tag_operations_disabled">
|
||||
!currentPageContext.repository.tag_operations_disabled && Features.BUILD_SUPPORT">
|
||||
Repository {{ currentPageContext.repository.namespace }}/{{ currentPageContext.repository.name }}
|
||||
</li>
|
||||
<li ng-if="currentPageContext.repository && currentPageContext.repository.can_write &&
|
||||
!currentPageContext.repository.tag_operations_disabled">
|
||||
!currentPageContext.repository.tag_operations_disabled && Features.BUILD_SUPPORT">
|
||||
<a ng-click="startBuild()">
|
||||
<i class="fa fa-tasks"></i> New Dockerfile Build
|
||||
</a>
|
||||
|
|
Reference in a new issue