diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-20 17:28:53 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-20 17:28:53 +0200 |
commit | 7f90b1ddab470a414833ffadd4fdefc2382ab6fc (patch) | |
tree | e26d7cc7dd2dc32e3436db7985b405018b73302e | |
parent | 6cb3b6868dca65ec566e95583e5ae95c31063d43 (diff) | |
download | kube-7f90b1ddab470a414833ffadd4fdefc2382ab6fc.tar.gz kube-7f90b1ddab470a414833ffadd4fdefc2382ab6fc.zip |
logview
-rw-r--r-- | components/kube/contents/ui/LogView.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml index 9f50ca37..55652f5c 100644 --- a/components/kube/contents/ui/LogView.qml +++ b/components/kube/contents/ui/LogView.qml | |||
@@ -40,6 +40,7 @@ Controls.SplitView { | |||
40 | id: listView | 40 | id: listView |
41 | anchors { | 41 | anchors { |
42 | margins: Kube.Units.largeSpacing | 42 | margins: Kube.Units.largeSpacing |
43 | fill: parent | ||
43 | } | 44 | } |
44 | 45 | ||
45 | clip: true | 46 | clip: true |
@@ -64,7 +65,7 @@ Controls.SplitView { | |||
64 | color: listView.currentIndex == index ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor | 65 | color: listView.currentIndex == index ? Kube.Colors.highlightColor : Kube.Colors.viewBackgroundColor |
65 | 66 | ||
66 | Kube.Label { | 67 | Kube.Label { |
67 | id: resource | 68 | id: description |
68 | anchors { | 69 | anchors { |
69 | top: parent.top | 70 | top: parent.top |
70 | topMargin: Kube.Units.smallSpacing | 71 | topMargin: Kube.Units.smallSpacing |
@@ -73,14 +74,14 @@ Controls.SplitView { | |||
73 | } | 74 | } |
74 | height: Kube.Units.gridUnit | 75 | height: Kube.Units.gridUnit |
75 | width: parent.width - Kube.Units.largeSpacing * 2 | 76 | width: parent.width - Kube.Units.largeSpacing * 2 |
76 | text: "Resource: " + model.resource | 77 | text: "Error" |
77 | } | 78 | } |
78 | 79 | ||
79 | Kube.Label { | 80 | Kube.Label { |
80 | id: message | 81 | id: message |
81 | anchors { | 82 | anchors { |
82 | topMargin: Kube.Units.smallSpacing | 83 | topMargin: Kube.Units.smallSpacing |
83 | top: resource.bottom | 84 | top: description.bottom |
84 | left: parent.left | 85 | left: parent.left |
85 | leftMargin: Kube.Units.largeSpacing | 86 | leftMargin: Kube.Units.largeSpacing |
86 | } | 87 | } |
@@ -88,6 +89,7 @@ Controls.SplitView { | |||
88 | width: parent.width - Kube.Units.largeSpacing * 2 | 89 | width: parent.width - Kube.Units.largeSpacing * 2 |
89 | maximumLineCount: 1 | 90 | maximumLineCount: 1 |
90 | elide: Text.ElideRight | 91 | elide: Text.ElideRight |
92 | color: Kube.Colors.disabledTextColor | ||
91 | 93 | ||
92 | text: model.message | 94 | text: model.message |
93 | } | 95 | } |
@@ -119,6 +121,7 @@ Controls.SplitView { | |||
119 | id: details | 121 | id: details |
120 | property date timestamp | 122 | property date timestamp |
121 | property string message | 123 | property string message |
124 | //TODO get account name from resource id | ||
122 | property string resourceId: "" | 125 | property string resourceId: "" |
123 | color: Kube.Colors.backgroundColor | 126 | color: Kube.Colors.backgroundColor |
124 | Rectangle { | 127 | Rectangle { |
@@ -131,7 +134,7 @@ Controls.SplitView { | |||
131 | anchors.fill: parent | 134 | anchors.fill: parent |
132 | columns: 2 | 135 | columns: 2 |
133 | Kube.Label { | 136 | Kube.Label { |
134 | text: "Resource:" | 137 | text: "Resource Id:" |
135 | } | 138 | } |
136 | Kube.Label { | 139 | Kube.Label { |
137 | text: details.resourceId | 140 | text: details.resourceId |
@@ -152,6 +155,7 @@ Controls.SplitView { | |||
152 | Layout.columnSpan: 2 | 155 | Layout.columnSpan: 2 |
153 | Layout.fillHeight: true | 156 | Layout.fillHeight: true |
154 | } | 157 | } |
158 | //TODO offer a possible explanation for known errors and a path to resolution. | ||
155 | } | 159 | } |
156 | } | 160 | } |
157 | } | 161 | } |