From aafaaee90452f2ee03f646994a1469acc948f3d2 Mon Sep 17 00:00:00 2001 From: Vipra Date: Tue, 21 May 2024 18:19:14 +0200 Subject: [PATCH] do not add proplates on account--minimal new div around element showing the currently logged in user --- src/libs/protootshelpers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/protootshelpers.js b/src/libs/protootshelpers.js index ff664ab..47666b4 100644 --- a/src/libs/protootshelpers.js +++ b/src/libs/protootshelpers.js @@ -51,7 +51,10 @@ export function addTypeAttribute(ActionElement) { } else if (hasClasses(ActionElement, "notification", "notification__message")) { ActionElement.setAttribute("protoots-type", "notification"); ActionElement.closest("article").setAttribute("protoots-type", "notification"); - } else if (hasClasses(ActionElement, "account")) { + } else if ( + hasClasses(ActionElement, "account") && + !hasClasses(ActionElement, "account--minimal") + ) { ActionElement.setAttribute("protoots-type", "account"); ActionElement.closest("article").setAttribute("protoots-type", "account"); }