summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/kube/contents/ui/LogView.qml3
-rw-r--r--framework/qml/Notifications.qml1
-rw-r--r--framework/src/sinkfabric.cpp1
3 files changed, 5 insertions, 0 deletions
diff --git a/components/kube/contents/ui/LogView.qml b/components/kube/contents/ui/LogView.qml
index a328ec3e..3b0aa2d5 100644
--- a/components/kube/contents/ui/LogView.qml
+++ b/components/kube/contents/ui/LogView.qml
@@ -174,6 +174,9 @@ Controls.SplitView {
174 if (subtype == Kube.Notifications.hostNotFoundError) { 174 if (subtype == Kube.Notifications.hostNotFoundError) {
175 return hostNotFoundErrorComponent 175 return hostNotFoundErrorComponent
176 } 176 }
177 if (subtype == Kube.Notifications.connectionError) {
178 return hostNotFoundErrorComponent
179 }
177 return detailsComponent 180 return detailsComponent
178 } 181 }
179 182
diff --git a/framework/qml/Notifications.qml b/framework/qml/Notifications.qml
index 622aca86..18f2a68a 100644
--- a/framework/qml/Notifications.qml
+++ b/framework/qml/Notifications.qml
@@ -27,5 +27,6 @@ Item {
27 27
28 property string loginError: "loginError" 28 property string loginError: "loginError"
29 property string hostNotFoundError: "hostNotFoundError" 29 property string hostNotFoundError: "hostNotFoundError"
30 property string connectionError: "connectionError"
30} 31}
31 32
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp
index 6435bd08..897534b9 100644
--- a/framework/src/sinkfabric.cpp
+++ b/framework/src/sinkfabric.cpp
@@ -166,6 +166,7 @@ public:
166 switch(notification.code) { 166 switch(notification.code) {
167 case Sink::ApplicationDomain::ConnectionError: 167 case Sink::ApplicationDomain::ConnectionError:
168 message["message"] = QObject::tr("Failed to connect to server."); 168 message["message"] = QObject::tr("Failed to connect to server.");
169 message["subtype"] = "connectionError";
169 break; 170 break;
170 case Sink::ApplicationDomain::NoServerError: 171 case Sink::ApplicationDomain::NoServerError:
171 message["message"] = QObject::tr("Host not found."); 172 message["message"] = QObject::tr("Host not found.");