[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kube/develop] components/kube/contents/ui: Only show a resource if it is available
From: Christian Mollekopf <null () kde ! org>
Date: 2017-06-22 18:48:33
Message-ID: E1dO79d-0000zw-Bq () code ! kde ! org
[Download RAW message or body]
Git commit e754d1b038c16db15811c50d6035c6900626e478 by Christian Mollekopf.
Committed on 22/06/2017 at 15:57.
Pushed by cmollekopf into branch 'develop'.
Only show a resource if it is available
M +5 -1 components/kube/contents/ui/LogView.qml
https://commits.kde.org/kube/e754d1b038c16db15811c50d6035c6900626e478
diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml
index e04e2c8..2d7f9e7 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:"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic