diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-28 11:21:51 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-06-28 11:21:51 +0200 |
commit | 1b46726b46197776c70adb9367fd604d50522755 (patch) | |
tree | 61fa69f275ed15117b0b2e24907f2b4c9ac09bf6 /views | |
parent | bd62b0c97bf7aa9f4c864367a159ea479c256bc1 (diff) | |
download | kube-1b46726b46197776c70adb9367fd604d50522755.tar.gz kube-1b46726b46197776c70adb9367fd604d50522755.zip |
Only show the logview if notificaitons are available
and rename to Notification view
Diffstat (limited to 'views')
-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, |