mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Notification: fix typeerror
This commit is contained in:
@@ -305,15 +305,15 @@ Variants {
|
||||
onExited: card.hoverCount--
|
||||
onClicked: mouse => {
|
||||
if (mouse.button === Qt.RightButton) {
|
||||
card.animateOut();
|
||||
animateOut();
|
||||
} else if (mouse.button === Qt.LeftButton) {
|
||||
var actions = model.actionsJson ? JSON.parse(model.actionsJson) : [];
|
||||
var hasDefault = actions.some(function (a) {
|
||||
return a.identifier === "default";
|
||||
});
|
||||
if (hasDefault) {
|
||||
animateOut();
|
||||
NotificationService.invokeAction(notificationId, "default");
|
||||
card.animateOut();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -564,8 +564,8 @@ Variants {
|
||||
anchors.rightMargin: Style.marginM
|
||||
|
||||
onClicked: {
|
||||
NotificationService.removeFromHistory(model.id);
|
||||
animateOut();
|
||||
NotificationService.removeFromHistory(model.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user