feat(GODT-2767): connected existing entrypoints to wizard, and moved it to a stack layout. [skip-ci]

This commit is contained in:
Xavier Michelon
2023-08-10 15:01:32 +02:00
parent ad31e6a9c5
commit ca5f7ce9f6
8 changed files with 69 additions and 1075 deletions

View File

@ -33,6 +33,8 @@ Item {
property var user
property string address
signal wizardEnded()
function clientIconSource() {
switch (client) {
case SetupWizard.Client.AppleMail:
@ -66,7 +68,7 @@ Item {
}
function closeWizard() {
root.visible = false;
wizardEnded()
}
function showOutlookSelector() {
@ -92,13 +94,14 @@ Item {
rightContent.currentIndex = 2;
}
function startLogin() {
function startLogin(username = "") {
root.visible = true;
rootStackLayout.currentIndex = 0;
root.address = "";
leftContent.showLogin();
rightContent.currentIndex = 1;
login.reset(true);
login.username = username;
}
function showClientWarning() {