diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-22 17:57:42 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-22 17:57:42 +0200 |
commit | e754d1b038c16db15811c50d6035c6900626e478 (patch) | |
tree | a7e983faf3bc70f22265d5dc40df43fb6903b4c5 | |
parent | 114e04f60f8dd01eb9bb5b68fa72961c16c65401 (diff) | |
download | kube-e754d1b038c16db15811c50d6035c6900626e478.tar.gz kube-e754d1b038c16db15811c50d6035c6900626e478.zip |
Only show a resource if it is available
-rw-r--r-- | components/kube/contents/ui/LogView.qml | 6 |
1 files changed, 5 insertions, 1 deletions
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 { | |||
50 | } | 50 | } |
51 | 51 | ||
52 | onCurrentItemChanged: { | 52 | onCurrentItemChanged: { |
53 | details.resourceId = currentItem.currentData.resource | 53 | if (details.resourceId) { |
54 | details.resourceId = currentItem.currentData.resource | ||
55 | } | ||
54 | details.message = currentItem.currentData.message | 56 | details.message = currentItem.currentData.message |
55 | details.timestamp = currentItem.currentData.timestamp | 57 | details.timestamp = currentItem.currentData.timestamp |
56 | } | 58 | } |
@@ -135,9 +137,11 @@ Controls.SplitView { | |||
135 | columns: 2 | 137 | columns: 2 |
136 | Kube.Label { | 138 | Kube.Label { |
137 | text: "Resource Id:" | 139 | text: "Resource Id:" |
140 | visible: details.resourceId | ||
138 | } | 141 | } |
139 | Kube.Label { | 142 | Kube.Label { |
140 | text: details.resourceId | 143 | text: details.resourceId |
144 | visible: details.resourceId | ||
141 | } | 145 | } |
142 | Kube.Label { | 146 | Kube.Label { |
143 | text: "Timestamp:" | 147 | text: "Timestamp:" |