mirror of
https://github.com/kiteco/vscode-plugin.git
synced 2024-09-11 16:08:10 +03:00
Add new views for account verification and creation
This commit is contained in:
parent
a5bb001516
commit
f04e64175b
@ -158,6 +158,7 @@ module.exports = class KiteInstall {
|
||||
new CheckEmail({
|
||||
name: 'check-email',
|
||||
failureStep: 'input-email',
|
||||
view: accountVerificationView,
|
||||
}),
|
||||
new BranchStep([
|
||||
{
|
||||
@ -170,7 +171,7 @@ module.exports = class KiteInstall {
|
||||
}),
|
||||
}, {
|
||||
match: (data) => !data.account.exists,
|
||||
step: new CreateAccount({name: 'create-account'}),
|
||||
step: new CreateAccount({name: 'create-account', view: accountCreationView}),
|
||||
},
|
||||
], {
|
||||
name: 'account-switch',
|
||||
@ -221,6 +222,13 @@ function inputEmailView (state) {
|
||||
</form>`;
|
||||
}
|
||||
|
||||
function accountVerificationView (state) {
|
||||
return `Please wait, we're currently verifying whether an account exist or not for this email.`;
|
||||
}
|
||||
function accountCreationView (state) {
|
||||
return `Please wait, we're currently creating your account.`;
|
||||
}
|
||||
|
||||
function loginView(state) {
|
||||
return `
|
||||
<p>It seems like you already have a Kite account. Sign in with your login info.</p>
|
||||
|
Loading…
Reference in New Issue
Block a user