Dashboard2 close notification

Hello there,
Anyone any clue, how to close a notification in Dashboard2?
In the msg.update_ui there is only one command that sounds close to the taskm but it doesnt work. It is the "show" property that i tried to set to false, but this did not help.
How can i close the notification upon some event?
I treid to send null payload, false payload nothing helped.

You mean msg.ui_update right?

Have you tried sending msg.ui_update.show set to false

Yes tried, tried both enabled, and show..

msg = {
        "ui_update": {
            "show":false,
        },
     "enabled":false

    };
return msg;

What did you send that to? Into the ui-notification node?

Out of interest, could you try sending true to ui_update.close

will try, and come back to you. And btwm yesm i am sending this into the ui_notification node.

did not work

Can you export and post a very simple flow showing the problem please so we can try it? Just an inject, the ui_notification and nodes to make it appear.

Sure 1 sec

flows.json (3.1 KB)

flows.json (3.1 KB)

show: false is not working for me either. I have submitted an issue

By the way, when posting flows please use the preferred method described in How to share code or flow json

Thanks.

@GIGS1975, in case you have not been following the issue, it appears this is a documentation error and it should say that msg.show can be used to show/hide the notification, not msg.ui_update.show.

  1. Where did I incorrectly posted my code?
  2. Does that mean that, msg.show / msg.hide is the way to go?
    Thank you

You posted it in posts #9 and #10 as an attachment rather than the preferred inline method described in the link I posted.. The Advantage of that method is that a reader can just click the copy button at the right hand corner of the inlined code rather than having to download it, open it and copy it.

No, msg.show should be true or false. It is as you had it but msg.show instead of msg.ui_update.show.