From be3a183980061d8d775340c7ac682f3a4afeb6f5 Mon Sep 17 00:00:00 2001 From: Angel Garbarino Date: Wed, 2 Oct 2024 11:04:30 -0600 Subject: [PATCH] cannot call capabilities service directly inside template because its an unresolved promise --- ui/app/components/alphabet-edit.hbs | 4 ++-- ui/app/templates/components/transform-role-edit.hbs | 4 ++-- ui/app/templates/components/transform-template-edit.hbs | 4 ++-- ui/app/templates/vault/cluster/policy/edit.hbs | 4 ++-- ui/app/templates/vault/cluster/policy/show.hbs | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/app/components/alphabet-edit.hbs b/ui/app/components/alphabet-edit.hbs index f35121b10caf..0318ee17c5ea 100644 --- a/ui/app/components/alphabet-edit.hbs +++ b/ui/app/components/alphabet-edit.hbs @@ -30,7 +30,7 @@ {{#if (eq this.mode "show")}} - {{#if this.capabilities.canDelete}} + {{#if this.model.updatePath.canDelete}}
{{/if}} - {{#if this.capabilities.canUpdate}} + {{#if this.model.updatePath.canUpdate}} - {{#if this.capabilities.canDelete}} + {{#if this.model.updatePath.canDelete}}
{{/if}} - {{#if this.capabilities.canUpdate}} + {{#if this.model.updatePath.canUpdate}} - {{#if this.capabilities.canDelete}} + {{#if this.model.updatePath.canDelete}}
{{/if}} - {{#if this.capabilities.canUpdate}} + {{#if this.model.updatePath.canUpdate}} -{{#if (and (not-eq this.model.id "root") (or this.capabilities.canUpdate this.capabilities.canDelete))}} +{{#if (and (not-eq this.model.id "root") (or this.model.updatePath.canUpdate this.model.updatePath.canDelete))}} - {{#if (and (not-eq this.model.id "default") this.capabilities.canDelete)}} + {{#if (and (not-eq this.model.id "default") this.model.updatePath.canDelete)}} - {{#if (and (not-eq this.model.id "root") (or this.capabilities.canUpdate this.capabilities.canDelete))}} + {{#if (and (not-eq this.model.id "root") (or this.model.updatePath.canUpdate this.model.updatePath.canDelete))}}