Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
821
Merge Requests
64
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
631d2347
Commit
631d2347
authored
9 minutes ago
by
Ben Hayward
Browse files
Options
Download
Added docs and removed an unused import.
parent
258c5f9e
fix/avatar-change-detection-2197
1 merge request
!628
[Sprint/QuietQuail](fix): Avatar changing forms now change avatar without refresh of components
Pipeline
#93352953
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/app/common/components/avatar/avatar.ts
View file @
631d2347
import
{
Component
,
EventEmitter
,
ChangeDetectorRef
}
from
'
@angular/core
'
;
import
{
Component
,
EventEmitter
}
from
'
@angular/core
'
;
import
{
UserAvatarService
}
from
'
../../services/user-avatar.service
'
;
import
{
of
,
Observable
}
from
'
rxjs
'
;
...
...
This diff is collapsed.
src/app/common/services/user-avatar.service.ts
View file @
631d2347
/**
* @author Ben Hayward
* @desc Singleton service used to store the current user avatar as a BehaviorSubject.
*/
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
BehaviorSubject
}
from
'
rxjs
'
;
// Singleton
@
Injectable
({
providedIn
:
'
root
'
,
})
...
...
This diff is collapsed.
Please
register
or
sign in
to comment