Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
809
Merge Requests
57
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
e169b919
Commit
e169b919
authored
33 minutes ago
by
Ben Hayward
Browse files
Options
Download
Noticed error
parent
8871491e
fix/avatar-change-detection-2197
1 merge request
!628
[Sprint/QuietQuail](fix): Avatar changing forms now change avatar without refresh of components
Pipeline
#94191106
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/app/common/services/user-avatar.service.ts
View file @
e169b919
...
...
@@ -20,11 +20,13 @@ export class UserAvatarService {
this
.
init
();
// Subscribe to loggedIn$ and on login, update src$.
this
.
loggedIn$
=
this
.
session
.
loggedinEmitter
.
subscribe
(
is
=>
{
if
(
is
)
{
this
.
src$
.
next
(
this
.
getSrc
());
}
});
if
(
this
.
session
.
loggedinEmitter
)
{
this
.
loggedIn$
=
this
.
session
.
loggedinEmitter
.
subscribe
(
is
=>
{
if
(
is
)
{
this
.
src$
.
next
(
this
.
getSrc
());
}
});
}
}
/**
...
...
This diff is collapsed.
Please
register
or
sign in
to comment