Merge pull request #3050 from loganhz/hpa

Disable add HPA button if not supported
This commit is contained in:
Westly Wright 2019-06-13 09:15:46 -07:00 committed by GitHub
commit ecfd1389f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
"authenticated.project.hpa.new" "authenticated.project.hpa.new"
scope.currentProject.id scope.currentProject.id
class="btn btn-sm bg-primary" class="btn btn-sm bg-primary"
disabled=(rbac-prevents resource="horizontalpodautoscaler" scope="project" permission="create") disabled=(or (not model.supported) (rbac-prevents resource="horizontalpodautoscaler" scope="project" permission="create"))
}} }}
{{t "nav.containers.addHpa"}} {{t "nav.containers.addHpa"}}
{{/link-to}} {{/link-to}}