diff options
author | Christian Mollekopf <mollekopf@kolabsystems.com> | 2017-10-23 17:41:09 +0200 |
---|---|---|
committer | Christian Mollekopf <mollekopf@kolabsystems.com> | 2017-10-23 17:41:09 +0200 |
commit | b2d0193f017a9a8a39838eff8afdfc3d30824a84 (patch) | |
tree | 6be5764acf246ca36167227398641680ef8bfd00 /components | |
parent | 62c95ab81110ab568b7bb0449435d7def9eb84c9 (diff) | |
download | kube-b2d0193f017a9a8a39838eff8afdfc3d30824a84.tar.gz kube-b2d0193f017a9a8a39838eff8afdfc3d30824a84.zip |
Alert when we have pending errors in the logview.
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 1 | ||||
-rw-r--r-- | components/kube/contents/ui/LogView.qml | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 2d84f1da..ccbec2da 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -226,6 +226,7 @@ Controls2.ApplicationWindow { | |||
226 | onClicked: kubeViews.setLogView() | 226 | onClicked: kubeViews.setLogView() |
227 | activeFocusOnTab: true | 227 | activeFocusOnTab: true |
228 | checkable: true | 228 | checkable: true |
229 | alert: logView.pendingError | ||
229 | Controls2.ButtonGroup.group: viewButtonGroup | 230 | Controls2.ButtonGroup.group: viewButtonGroup |
230 | tooltip: qsTr("logview") | 231 | tooltip: qsTr("logview") |
231 | } | 232 | } |
diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml index 4a4befd1..c1cc36fd 100644 --- a/components/kube/contents/ui/LogView.qml +++ b/components/kube/contents/ui/LogView.qml | |||
@@ -24,6 +24,14 @@ import QtQuick.Controls 2.0 as Controls2 | |||
24 | import org.kube.framework 1.0 as Kube | 24 | import org.kube.framework 1.0 as Kube |
25 | 25 | ||
26 | Controls.SplitView { | 26 | Controls.SplitView { |
27 | id: root | ||
28 | |||
29 | property bool pendingError: false; | ||
30 | |||
31 | Controls2.StackView.onActivated: { | ||
32 | pendingError = false; | ||
33 | } | ||
34 | |||
27 | Item { | 35 | Item { |
28 | id: accountList | 36 | id: accountList |
29 | width: parent.width/2 | 37 | width: parent.width/2 |
@@ -32,6 +40,7 @@ Controls.SplitView { | |||
32 | Kube.Listener { | 40 | Kube.Listener { |
33 | filter: Kube.Messages.notification | 41 | filter: Kube.Messages.notification |
34 | onMessageReceived: { | 42 | onMessageReceived: { |
43 | root.pendingError = true | ||
35 | logModel.insert(0, {message: message.message, details: message.details, timestamp: new Date(), resource: message.resource}); | 44 | logModel.insert(0, {message: message.message, details: message.details, timestamp: new Date(), resource: message.resource}); |
36 | } | 45 | } |
37 | } | 46 | } |