From e754d1b038c16db15811c50d6035c6900626e478 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 22 Jun 2017 17:57:42 +0200 Subject: Only show a resource if it is available --- components/kube/contents/ui/LogView.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'components') diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml index e04e2c8a..2d7f9e7a 100644 --- a/components/kube/contents/ui/LogView.qml +++ b/components/kube/contents/ui/LogView.qml @@ -50,7 +50,9 @@ Controls.SplitView { } onCurrentItemChanged: { - details.resourceId = currentItem.currentData.resource + if (details.resourceId) { + details.resourceId = currentItem.currentData.resource + } details.message = currentItem.currentData.message details.timestamp = currentItem.currentData.timestamp } @@ -135,9 +137,11 @@ Controls.SplitView { columns: 2 Kube.Label { text: "Resource Id:" + visible: details.resourceId } Kube.Label { text: details.resourceId + visible: details.resourceId } Kube.Label { text: "Timestamp:" -- cgit v1.2.3