do not add proplates on account--minimal

new div around element showing the currently logged in user
This commit is contained in:
Vipra 2024-05-21 18:19:14 +02:00
parent 6e94b241f1
commit aafaaee904

View file

@ -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");
}