From 301a89dd92e52f68b9d6753b375018fa36b98ce7 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Fri, 21 Feb 2025 23:37:14 +0100 Subject: [PATCH] web/admin: only show message when not editing an application (cherry-pick #13165) (#13168) web/admin: only show message when not editing an application (#13165) Signed-off-by: Jens Langhammer Co-authored-by: Jens L. --- web/src/admin/applications/ApplicationForm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/admin/applications/ApplicationForm.ts b/web/src/admin/applications/ApplicationForm.ts index 9ea8997c23..54340e1659 100644 --- a/web/src/admin/applications/ApplicationForm.ts +++ b/web/src/admin/applications/ApplicationForm.ts @@ -22,7 +22,7 @@ import "@goauthentik/elements/forms/SearchSelect"; import "@patternfly/elements/pf-tooltip/pf-tooltip.js"; import { msg } from "@lit/localize"; -import { TemplateResult, html } from "lit"; +import { TemplateResult, html, nothing } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -126,7 +126,7 @@ export class ApplicationForm extends WithCapabilitiesConfig(ModelForm - ${alertMsg} + ${this.instance ? nothing : html`${alertMsg}`}