fix(notifications): prevent expansion of non-expandable items in history

This commit is contained in:
tibssy
2026-02-27 01:08:37 +00:00
parent 28dc8229b7
commit 63d117d13e
@@ -172,10 +172,12 @@ SmartPanel {
NotificationService.invokeAction(item.id, actions[actionIndex].identifier);
}
} else {
// Toggle expansion or open?
// User request didn't specify. Let's toggle expansion logic if we can access it.
// We can communicate with the delegate via a property or signal?
// Delegates read 'scrollView.expandedId'.
var delegate = notificationColumn.children[focusIndex];
if (!delegate)
return;
if (!(delegate.canExpand || delegate.isExpanded))
return;
if (scrollView.expandedId === item.id) {
scrollView.expandedId = "";
} else {