Fix two factor auth notification: activity item was disabled.
authorCamila <hello@camila.codes>
Tue, 20 Sep 2022 16:53:55 +0000 (18:53 +0200)
committerCamila <hello@camila.codes>
Tue, 20 Sep 2022 16:56:31 +0000 (18:56 +0200)
User couldn't click on the links.

Signed-off-by: Camila <hello@camila.codes>
src/gui/tray/ActivityItem.qml

index 72d3311f0c44469f18af19372835da0e12b33395..4c521476225bd114dc439a8b5b6a043d48d8d1e4 100644 (file)
@@ -20,7 +20,7 @@ ItemDelegate {
     property color adjustedHeaderColor: Theme.darkMode ? Qt.lighter(UserModel.currentUser.headerColor, 2)
                                                        : Qt.darker(UserModel.currentUser.headerColor, 1.5)
 
-    enabled: (model.path !== "" || model.link !== "" || model.isCurrentUserFileActivity === true)
+    enabled: (model.path !== "" || model.link !== "" || model.links.length > 0 ||  model.isCurrentUserFileActivity === true)
     padding: Style.standardSpacing
 
     Accessible.role: Accessible.ListItem