diff options
-rw-r--r-- | components/kube/contents/ui/LogView.qml | 12 |
1 files changed, 9 insertions, 3 deletions
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 { | |||
36 | } | 36 | } |
37 | } | 37 | } |
38 | 38 | ||
39 | Kube.Label { | ||
40 | anchors.centerIn: parent | ||
41 | visible: listView.count == 0 | ||
42 | text: qsTr("Nothing here...") | ||
43 | } | ||
44 | |||
39 | Kube.ListView { | 45 | Kube.ListView { |
40 | id: listView | 46 | id: listView |
41 | anchors { | 47 | anchors { |
@@ -102,14 +108,13 @@ Controls.SplitView { | |||
102 | } | 108 | } |
103 | } | 109 | } |
104 | } | 110 | } |
105 | Rectangle { | 111 | Item { |
106 | id: details | 112 | id: details |
107 | property date timestamp | 113 | property date timestamp |
108 | property string message | 114 | property string message: "" |
109 | property string resourceId: "" | 115 | property string resourceId: "" |
110 | property string accountId: retriever.currentData ? retriever.currentData.accountId : "" | 116 | property string accountId: retriever.currentData ? retriever.currentData.accountId : "" |
111 | property string accountName: retriever.currentData ? retriever.currentData.name : "" | 117 | property string accountName: retriever.currentData ? retriever.currentData.name : "" |
112 | color: Kube.Colors.backgroundColor | ||
113 | 118 | ||
114 | Kube.ModelIndexRetriever { | 119 | Kube.ModelIndexRetriever { |
115 | id: retriever | 120 | id: retriever |
@@ -123,6 +128,7 @@ Controls.SplitView { | |||
123 | fill: parent | 128 | fill: parent |
124 | margins: Kube.Units.largeSpacing | 129 | margins: Kube.Units.largeSpacing |
125 | } | 130 | } |
131 | visible: details.message != "" | ||
126 | color: Kube.Colors.viewBackgroundColor | 132 | color: Kube.Colors.viewBackgroundColor |
127 | GridLayout { | 133 | GridLayout { |
128 | id: gridLayout | 134 | id: gridLayout |