diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-08-20 20:22:48 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-08-20 20:27:50 +0200 |
commit | 2f1f352342e8e707beabd8d0c180887182e28c9a (patch) | |
tree | 073108250d64d5afbc561f6af43a4411d5e8c67a /gui/qml | |
parent | 339a30fd1917011d8ad8a3900509f3a8880d569d (diff) |
[feat] reset notification
Diffstat (limited to 'gui/qml')
-rw-r--r-- | gui/qml/LoginOKDialog.qml | 3 | ||||
-rw-r--r-- | gui/qml/main.qml | 2 |
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') { |