From d88f7fb16fb41596d1a239a00c7e6155eed8ca9a Mon Sep 17 00:00:00 2001 From: loganhz Date: Wed, 12 Jun 2019 15:35:03 -0700 Subject: [PATCH] Disable add HPA button if not supported https://github.com/rancher/rancher/issues/20758 --- app/authenticated/project/hpa/index/template.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/authenticated/project/hpa/index/template.hbs b/app/authenticated/project/hpa/index/template.hbs index deaccb12a..7d82a22a6 100644 --- a/app/authenticated/project/hpa/index/template.hbs +++ b/app/authenticated/project/hpa/index/template.hbs @@ -10,7 +10,7 @@ "authenticated.project.hpa.new" scope.currentProject.id 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"}} {{/link-to}}