From 1b46726b46197776c70adb9367fd604d50522755 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 28 Jun 2018 11:21:51 +0200 Subject: Only show the logview if notificaitons are available and rename to Notification view --- views/log/qml/View.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'views') 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 { id: root property bool pendingError: false; + property bool pendingNotification: false; onPendingErrorChanged: { Kube.Fabric.postMessage(Kube.Messages.errorPending, {errorPending: pendingError}) } + onPendingNotificationChanged: { + Kube.Fabric.postMessage(Kube.Messages.notificationPending, {notificationPending: pendingNotification}) + } Controls2.StackView.onActivated: { root.pendingError = false; + root.pendingNotification = false; //Always select the latest notification listView.currentIndex = 0 } @@ -53,6 +58,8 @@ Controls1.SplitView { root.pendingError = true } + root.pendingNotification = true + var error = { timestamp: new Date(), message: message.message, -- cgit v1.2.3