I tried the module (beta2 version) and otherwise it works as expected, but I'm wondering if it's expected behavior that a conditional message is never displayed again if the user closes it once?

What I was expecting was that if I have a condition that says "show message to certain user roles", but I leave the "Until manually closed" condition unchecked, then my message would always get displayed and the user would not have the option to close the message. But it seems a entry is added to the browser local storage always after a user closes a message, and this then prevents the message from being displayed in the future unless the storage is cleared.

My use case it that I have some users to which I want to display a message until another process or an administrator within the site marks the message as no longer relevant for that user. E.g. if a customer in a webshop has unpaid bills, I'd want to display a message to the customer until the bills have been paid, so not provide the user with the option to close the message. Should this be possible atm. with some combination of conditions?

Comments

jwwj created an issue. See original summary.

wranvaud’s picture

Assigned: Unassigned » wranvaud

Thank you for the feedback! This feature could definitely improve. I'll be looking into this next.

wranvaud’s picture

Thanks again for reporting this, issue fixed. Will be on the next release beta5.

  • wranvaud committed a5d3063 on 8.x-1.x
    Issue #3083070 by wranvaud, jwwj: Condition on user role only fires once...
wranvaud’s picture

Status: Active » Fixed
wranvaud’s picture

Version: 8.x-1.0-beta2 » 8.x-1.0-beta4

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.