summaryrefslogtreecommitdiff
path: root/gui/qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:22:48 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:50 +0200
commit2f1f352342e8e707beabd8d0c180887182e28c9a (patch)
tree073108250d64d5afbc561f6af43a4411d5e8c67a /gui/qml
parent339a30fd1917011d8ad8a3900509f3a8880d569d (diff)
[feat] reset notification
Diffstat (limited to 'gui/qml')
-rw-r--r--gui/qml/LoginOKDialog.qml3
-rw-r--r--gui/qml/main.qml2
2 files changed, 3 insertions, 2 deletions
diff --git a/gui/qml/LoginOKDialog.qml b/gui/qml/LoginOKDialog.qml
index be023dd..bceda18 100644
--- a/gui/qml/LoginOKDialog.qml
+++ b/gui/qml/LoginOKDialog.qml
@@ -13,7 +13,8 @@ Dialog {
}
function _loginOk() {
- backend.resetError("bad_auth")
+ visible: false;
+ backend.resetNotification("login_ok");
}
visible: false
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index fe69a3b..9f8bea3 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -16,12 +16,12 @@ ApplicationWindow {
target: jsonModel
onDataChanged: {
ctx = JSON.parse(jsonModel.getJson());
+
if (ctx.donateDialog == 'true') {
console.debug(jsonModel.getJson())
donate.visible = true
}
if (ctx.loginDialog == 'true') {
- console.debug(jsonModel.getJson())
login.visible = true
}
if (ctx.loginOk == 'true') {