Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
fd7d0811
Commit
fd7d0811
authored
May 19, 2017
by
Χάρης Παπαδόπουλος
Browse files
loading spinner fix in parent-form
parent
9b9d761c
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/components/student-application-form/parent.form.html
View file @
fd7d0811
<div
class =
"loading"
*ngIf=
"
(epalUserData$ | async).userEmail === '' ||
(showLoader | async) === true"
></div>
<div
class =
"loading"
*ngIf=
"(showLoader | async) === true"
></div>
<div
id=
"emailSentNotice"
(onHidden)=
"onHidden()"
class=
"modal fade"
tabindex=
"-1"
role=
"dialog"
aria-hidden=
"true"
>
<div
id=
"emailSentNotice"
(onHidden)=
"onHidden()"
class=
"modal fade"
tabindex=
"-1"
role=
"dialog"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-dialog modal-lg"
>
...
...
source/components/student-application-form/parent.form.ts
View file @
fd7d0811
...
@@ -71,8 +71,9 @@ import {AppSettings} from '../../app.settings';
...
@@ -71,8 +71,9 @@ import {AppSettings} from '../../app.settings';
ngOnInit
()
{
ngOnInit
()
{
(
<
any
>
$
(
'
#emailSentNotice
'
)).
appendTo
(
"
body
"
);
(
<
any
>
$
(
'
#emailSentNotice
'
)).
appendTo
(
"
body
"
);
this
.
showLoader
.
next
(
true
);
this
.
epalUserDataSub
=
this
.
hds
.
getEpalUserData
().
subscribe
(
x
=>
{
this
.
epalUserDataSub
=
this
.
hds
.
getEpalUserData
().
subscribe
(
x
=>
{
this
.
showLoader
.
next
(
false
);
this
.
epalUserData$
.
next
(
x
);
this
.
epalUserData$
.
next
(
x
);
this
.
formGroup
.
get
(
'
userEmail
'
).
setValue
(
x
.
userEmail
);
this
.
formGroup
.
get
(
'
userEmail
'
).
setValue
(
x
.
userEmail
);
this
.
formGroup
.
get
(
'
userName
'
).
setValue
(
x
.
userName
);
this
.
formGroup
.
get
(
'
userName
'
).
setValue
(
x
.
userName
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment