Skip to content
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
403
Merge Requests
69
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
815d7e8aac55c1f07c9c5ad5badda81b9f4761d2...fd093f435913d5cac5b08685e4ec53e360506c3f
Source
fd093f435913d5cac5b08685e4ec53e360506c3f
...
Target
815d7e8aac55c1f07c9c5ad5badda81b9f4761d2
Compare
Commits (2)
(chore): start sidebar markers in loading state, server side
· 1a0dc356
Mark Harding
authored
4 hours ago
1a0dc356
(chore): improve load speed of wallet page on SSR
· fd093f43
Mark Harding
authored
4 hours ago
fd093f43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/app/modules/groups/sidebar-markers/sidebar-markers.component.ts
View file @
fd093f43
...
...
@@ -48,6 +48,8 @@ export class GroupsSidebarMarkersComponent implements OnInit, OnDestroy {
await
this
.
load
(
true
);
this
.
listenForMarkers
();
this
.
listenForMembershipUpdates
();
}
else
{
this
.
inProgress
=
true
;
// Server side should start in loading spinner state
}
}
...
...
This diff is collapsed.
src/app/modules/wallet/tokens/contributions/contributions.component.ts
View file @
fd093f43
...
...
@@ -2,14 +2,16 @@ import {
ChangeDetectionStrategy
,
ChangeDetectorRef
,
Component
,
Inject
,
PLATFORM_ID
,
}
from
'
@angular/core
'
;
import
{
Router
}
from
'
@angular/router
'
;
import
{
isPlatformServer
}
from
'
@angular/common
'
;
import
{
Client
}
from
'
../../../../services/api/client
'
;
import
{
Session
}
from
'
../../../../services/session
'
;
@
Component
({
moduleId
:
module
.
id
,
selector
:
'
m-wallet-token--contributions
'
,
templateUrl
:
'
contributions.component.html
'
,
changeDetection
:
ChangeDetectionStrategy
.
OnPush
,
...
...
@@ -25,7 +27,8 @@ export class WalletTokenContributionsComponent {
protected
client
:
Client
,
protected
cd
:
ChangeDetectorRef
,
public
session
:
Session
,
protected
router
:
Router
protected
router
:
Router
,
@
Inject
(
PLATFORM_ID
)
protected
platformId
:
Object
)
{}
ngOnInit
()
{
...
...
@@ -45,6 +48,10 @@ export class WalletTokenContributionsComponent {
return
;
}
if
(
isPlatformServer
(
this
.
platformId
))
{
return
;
}
if
(
refresh
)
{
this
.
contributions
=
[];
}
...
...
This diff is collapsed.