Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chatterbox
Manage
Activity
Members
Labels
Plan
Work items
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
element-hq
Chatterbox
Commits
14d9afcc
Commit
14d9afcc
authored
Jul 5, 2022
by
RMidhunSuresh
Browse files
Options
Downloads
Patches
Plain Diff
Render loader when waiting
parent
60e1466b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ui/views/AccountSetupView.ts
+3
-1
3 additions, 1 deletion
src/ui/views/AccountSetupView.ts
src/viewmodels/AccountSetupViewModel.ts
+7
-0
7 additions, 0 deletions
src/viewmodels/AccountSetupViewModel.ts
with
10 additions
and
1 deletion
src/ui/views/AccountSetupView.ts
+
3
−
1
View file @
14d9afcc
...
@@ -35,7 +35,9 @@ class PolicyAgreementView extends TemplateView<AccountSetupViewModel> {
...
@@ -35,7 +35,9 @@ class PolicyAgreementView extends TemplateView<AccountSetupViewModel> {
]),
]),
t
.
div
({
className
:
"
PolicyAgreementView_btn-collection
"
},
t
.
div
({
className
:
"
PolicyAgreementView_btn-collection
"
},
[
[
t
.
button
({
onClick
:
()
=>
vm
.
completeRegistration
(),
className
:
"
PolicyAgreementView_next
"
,
},
"
Accept and continue to chat
"
),
t
.
button
({
onClick
:
()
=>
vm
.
completeRegistration
(),
className
:
"
PolicyAgreementView_next
"
,
},
t
.
map
(
vm
=>
vm
.
showButtonSpinner
,
(
showButtonSpinner
,
t
)
=>
showButtonSpinner
?
t
.
div
({
className
:
"
loader
"
}):
t
.
span
(
"
Accept and continue to chat
"
))
),
t
.
button
({
onClick
:
()
=>
vm
.
minimize
(),
className
:
"
button-action PolicyAgreementView_cancel
"
,
},
"
Cancel
"
),
t
.
button
({
onClick
:
()
=>
vm
.
minimize
(),
className
:
"
button-action PolicyAgreementView_cancel
"
,
},
"
Cancel
"
),
]),
]),
]);
]);
...
...
This diff is collapsed.
Click to expand it.
src/viewmodels/AccountSetupViewModel.ts
+
7
−
0
View file @
14d9afcc
...
@@ -11,6 +11,7 @@ export class AccountSetupViewModel extends ViewModel {
...
@@ -11,6 +11,7 @@ export class AccountSetupViewModel extends ViewModel {
private
_password
:
string
;
private
_password
:
string
;
private
_registration
:
any
;
private
_registration
:
any
;
private
_privacyPolicyLink
:
string
;
private
_privacyPolicyLink
:
string
;
private
_showButtonSpinner
:
boolean
=
false
;
constructor
(
options
)
{
constructor
(
options
)
{
super
(
options
);
super
(
options
);
...
@@ -66,6 +67,8 @@ export class AccountSetupViewModel extends ViewModel {
...
@@ -66,6 +67,8 @@ export class AccountSetupViewModel extends ViewModel {
}
}
async
completeRegistration
()
{
async
completeRegistration
()
{
this
.
_showButtonSpinner
=
true
;
this
.
emitChange
(
"
showButtonSpinner
"
);
let
stage
=
this
.
_startStage
;
let
stage
=
this
.
_startStage
;
while
(
stage
)
{
while
(
stage
)
{
if
(
if
(
...
@@ -113,4 +116,8 @@ export class AccountSetupViewModel extends ViewModel {
...
@@ -113,4 +116,8 @@ export class AccountSetupViewModel extends ViewModel {
get
footerViewModel
()
{
get
footerViewModel
()
{
return
this
.
options
.
footerVM
;
return
this
.
options
.
footerVM
;
}
}
get
showButtonSpinner
():
boolean
{
return
this
.
_showButtonSpinner
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment