From dbc6e0d9644c7fc942a3d9228f69fbd49a45c9ef Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 3 Aug 2017 14:07:47 -0600 Subject: "Nothing here..." message for logview --- components/kube/contents/ui/LogView.qml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml index e085e449..5ed7f784 100644 --- a/components/kube/contents/ui/LogView.qml +++ b/components/kube/contents/ui/LogView.qml @@ -36,6 +36,12 @@ Controls.SplitView { } } + Kube.Label { + anchors.centerIn: parent + visible: listView.count == 0 + text: qsTr("Nothing here...") + } + Kube.ListView { id: listView anchors { @@ -102,14 +108,13 @@ Controls.SplitView { } } } - Rectangle { + Item { id: details property date timestamp - property string message + property string message: "" property string resourceId: "" property string accountId: retriever.currentData ? retriever.currentData.accountId : "" property string accountName: retriever.currentData ? retriever.currentData.name : "" - color: Kube.Colors.backgroundColor Kube.ModelIndexRetriever { id: retriever @@ -123,6 +128,7 @@ Controls.SplitView { fill: parent margins: Kube.Units.largeSpacing } + visible: details.message != "" color: Kube.Colors.viewBackgroundColor GridLayout { id: gridLayout -- cgit v1.2.3