diff options
Diffstat (limited to 'views/log/qml/View.qml')
-rw-r--r-- | views/log/qml/View.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/log/qml/View.qml b/views/log/qml/View.qml index 3aa76025..4dc2bce8 100644 --- a/views/log/qml/View.qml +++ b/views/log/qml/View.qml | |||
@@ -27,12 +27,17 @@ Controls1.SplitView { | |||
27 | id: root | 27 | id: root |
28 | 28 | ||
29 | property bool pendingError: false; | 29 | property bool pendingError: false; |
30 | property bool pendingNotification: false; | ||
30 | onPendingErrorChanged: { | 31 | onPendingErrorChanged: { |
31 | Kube.Fabric.postMessage(Kube.Messages.errorPending, {errorPending: pendingError}) | 32 | Kube.Fabric.postMessage(Kube.Messages.errorPending, {errorPending: pendingError}) |
32 | } | 33 | } |
34 | onPendingNotificationChanged: { | ||
35 | Kube.Fabric.postMessage(Kube.Messages.notificationPending, {notificationPending: pendingNotification}) | ||
36 | } | ||
33 | 37 | ||
34 | Controls2.StackView.onActivated: { | 38 | Controls2.StackView.onActivated: { |
35 | root.pendingError = false; | 39 | root.pendingError = false; |
40 | root.pendingNotification = false; | ||
36 | //Always select the latest notification | 41 | //Always select the latest notification |
37 | listView.currentIndex = 0 | 42 | listView.currentIndex = 0 |
38 | } | 43 | } |
@@ -53,6 +58,8 @@ Controls1.SplitView { | |||
53 | root.pendingError = true | 58 | root.pendingError = true |
54 | } | 59 | } |
55 | 60 | ||
61 | root.pendingNotification = true | ||
62 | |||
56 | var error = { | 63 | var error = { |
57 | timestamp: new Date(), | 64 | timestamp: new Date(), |
58 | message: message.message, | 65 | message: message.message, |