From c6ac23b11dc0b81e38e1927a637181a3a8c25ee2 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Wed, 12 Jun 2024 19:24:18 +0100 Subject: [PATCH] clear_notification --- ui/src/widgets/ui-notification/UINotification.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/widgets/ui-notification/UINotification.vue b/ui/src/widgets/ui-notification/UINotification.vue index f47ec9edb..04b4e9322 100644 --- a/ui/src/widgets/ui-notification/UINotification.vue +++ b/ui/src/widgets/ui-notification/UINotification.vue @@ -82,8 +82,10 @@ export default { msg }) - if (this.show) { - this.close('input_msg') + if ('clear_notification' in msg) { + if (msg.clear_notification && this.show) { + this.close('input_msg') + } } else { this.show = true if (this.props.displayTime > 0) {