mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-11 11:12:03 +02:00
36 lines
548 B
QML
Executable File
36 lines
548 B
QML
Executable File
import QtQuick 2.4
|
|
|
|
LoginPageForm {
|
|
|
|
property Item appRoot
|
|
|
|
id: root
|
|
|
|
function onShown() {
|
|
root.apiBaseUrl = settings.valueString("api.baseUrl");
|
|
root.email = settings.valueString("user.email");
|
|
root.password = "";
|
|
}
|
|
|
|
Connections {
|
|
target: root
|
|
onLoginButtonClicked: {
|
|
appRoot.emitLoginClicked(root.apiBaseUrl, root.email, root.password);
|
|
}
|
|
}
|
|
|
|
Connections {
|
|
target: appRoot
|
|
onLoginStarted: {
|
|
root.enabled = false;
|
|
}
|
|
onLoginFailed: {
|
|
root.enabled = true;
|
|
}
|
|
onLoginSuccess: {
|
|
root.enabled = true;
|
|
}
|
|
}
|
|
|
|
}
|