summaryrefslogtreecommitdiff
path: root/gui/qml/LoginOKDialog.qml
blob: 52b37701f75c3d1c0f6b27bc81f866fc1d58c27c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import QtQuick 2.0
import QtQuick.Dialogs 1.2
import QtQuick.Controls 1.4

Dialog {
    standardButtons: StandardButton.Ok
    title: qsTr("Login Successful")
    Column {
        anchors.fill: parent
        Text {
            text: qsTr("Login successful. You can now start the VPN.")
        }
    }

    // TODO implement cleanNotifications on backend
    function _loginOk() {
        loginDone = true;
    }

    visible: false
    onAccepted: _loginOk()
    onRejected: _loginOk()
}