Removing ui.notification() from the meta card after being notified #2132
Answered
by
vopani
n-srinidhi
asked this question in
Q&A
-
Hi, I'm trying to show the user logged out status after the user logs out. When I try to re-login from the same page, While creating new cards the notification is shown again. Is this a bug? Can this be avoided? logout.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
vopani
Sep 8, 2023
Replies: 1 comment 4 replies
-
You should set it back to eg: q.page['meta'].notification = 'User logged out successfully...'
await q.page.save()
q.page['meta'].notification = None
await q.page.save() |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can either set notification_bar to
None
at the beginning of the main function (preferred, so that it goes away whenever there is a UI change) or you could set a manual sleep timer. There are other ways of handling it too (like an async subprocess to remove the notification bar).eg: