diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-25 14:39:44 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-10-25 14:39:44 +0200 |
commit | 8a78d09844826948647aa5ecc46449413ce09502 (patch) | |
tree | d6101ac6a83c3645c0debfec06aced889012f4e0 /framework | |
parent | da955d84beda72e26ce641375bd6fc4159a4c9fc (diff) | |
download | kube-8a78d09844826948647aa5ecc46449413ce09502.tar.gz kube-8a78d09844826948647aa5ecc46449413ce09502.zip |
Use a loader so we can load different components depending on the error
Diffstat (limited to 'framework')
-rw-r--r-- | framework/qml/Notifications.qml | 2 | ||||
-rw-r--r-- | framework/src/sinkfabric.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/framework/qml/Notifications.qml b/framework/qml/Notifications.qml index df1190d3..7dd57dfa 100644 --- a/framework/qml/Notifications.qml +++ b/framework/qml/Notifications.qml | |||
@@ -24,5 +24,7 @@ Item { | |||
24 | property string error: "error" | 24 | property string error: "error" |
25 | property string info: "info" | 25 | property string info: "info" |
26 | property string progress: "progress" | 26 | property string progress: "progress" |
27 | |||
28 | property string loginError: "loginError" | ||
27 | } | 29 | } |
28 | 30 | ||
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index cdaa9a90..cb72c120 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -172,6 +172,7 @@ public: | |||
172 | break; | 172 | break; |
173 | case Sink::ApplicationDomain::LoginError: | 173 | case Sink::ApplicationDomain::LoginError: |
174 | message["message"] = QObject::tr("Failed to login."); | 174 | message["message"] = QObject::tr("Failed to login."); |
175 | message["subtype"] = "loginError"; | ||
175 | break; | 176 | break; |
176 | case Sink::ApplicationDomain::ConfigurationError: | 177 | case Sink::ApplicationDomain::ConfigurationError: |
177 | message["message"] = QObject::tr("Configuration error."); | 178 | message["message"] = QObject::tr("Configuration error."); |