summaryrefslogtreecommitdiffstats
path: root/views/log/qml/View.qml
diff options
context:
space:
mode:
Diffstat (limited to 'views/log/qml/View.qml')
-rw-r--r--views/log/qml/View.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/log/qml/View.qml b/views/log/qml/View.qml
index 14e2d543..df9e882f 100644
--- a/views/log/qml/View.qml
+++ b/views/log/qml/View.qml
@@ -45,7 +45,7 @@ Controls.SplitView {
45 if (message.type == Kube.Notifications.error) { 45 if (message.type == Kube.Notifications.error) {
46 root.pendingError = true 46 root.pendingError = true
47 } 47 }
48 var error = {timestamp: new Date(), message: message.message, details: message.details, resource: message.resource} 48 var error = {timestamp: new Date(), message: message.message, details: message.details, resource: message.resource, entities: message.entities}
49 if (logModel.count > 0) { 49 if (logModel.count > 0) {
50 var lastEntry = logModel.get(0) 50 var lastEntry = logModel.get(0)
51 //Merge if we get an entry of the same subtype 51 //Merge if we get an entry of the same subtype
@@ -89,6 +89,8 @@ Controls.SplitView {
89 } else { 89 } else {
90 details.subtype = "" 90 details.subtype = ""
91 } 91 }
92
93 details.entities = error.entities
92 } 94 }
93 95
94 delegate: Kube.ListDelegate { 96 delegate: Kube.ListDelegate {
@@ -145,6 +147,7 @@ Controls.SplitView {
145 property date timestamp 147 property date timestamp
146 property string message: "" 148 property string message: ""
147 property string resourceId: "" 149 property string resourceId: ""
150 property var entities: []
148 151
149 Kube.ModelIndexRetriever { 152 Kube.ModelIndexRetriever {
150 id: retriever 153 id: retriever
@@ -166,6 +169,7 @@ Controls.SplitView {
166 property string resourceId: details.resourceId 169 property string resourceId: details.resourceId
167 property string accountId: retriever.currentData ? retriever.currentData.accountId : "" 170 property string accountId: retriever.currentData ? retriever.currentData.accountId : ""
168 property string accountName: retriever.currentData ? retriever.currentData.name : "" 171 property string accountName: retriever.currentData ? retriever.currentData.name : ""
172 property var entities: details.entities
169 173
170 function getComponent(subtype) { 174 function getComponent(subtype) {
171 if (subtype == Kube.Notifications.loginError) { 175 if (subtype == Kube.Notifications.loginError) {
@@ -348,7 +352,7 @@ Controls.SplitView {
348 } 352 }
349 Kube.Label { 353 Kube.Label {
350 id: subHeadline 354 id: subHeadline
351 text: accountName 355 text: "Account: " + accountName + "\nMessage-Id: " + entities[0];
352 color: Kube.Colors.disabledTextColor 356 color: Kube.Colors.disabledTextColor
353 wrapMode: Text.Wrap 357 wrapMode: Text.Wrap
354 } 358 }