From 2d33fcbd3b83829a41f200bc7d7ed3da391e3b5d Mon Sep 17 00:00:00 2001 From: smk762 Date: Thu, 13 Apr 2023 16:40:45 +0800 Subject: [PATCH] handle button where no notifications --- atomic_defi_design/Dex/Dashboard/NotificationsModal.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atomic_defi_design/Dex/Dashboard/NotificationsModal.qml b/atomic_defi_design/Dex/Dashboard/NotificationsModal.qml index 4b494de500..8753f8abc8 100644 --- a/atomic_defi_design/Dex/Dashboard/NotificationsModal.qml +++ b/atomic_defi_design/Dex/Dashboard/NotificationsModal.qml @@ -622,8 +622,8 @@ DexPopup } OutlineButton - { - text: qsTr('Mark all as read') + { + text: notifications_list.length !== 0 ? qsTr('Mark all as read') : qsTr('Close') height: 40 width: 260 Layout.alignment: Qt.AlignHCenter