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
385
Merge Requests
61
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
Commits
4aa92b4c
Commit
4aa92b4c
authored
2 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(wip): Use value at instantiation time; fix test
parent
5f026303
fix/ssr-email-confirmation
1 merge request
!761
WIP: Fix email confirmation on SSR
Pipeline
#114987899
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
src/app/common/services/request-url.service.ts
View file @
4aa92b4c
...
...
@@ -3,9 +3,13 @@ import { isPlatformServer } from '@angular/common';
@
Injectable
()
export
class
RequestUrlService
{
constructor
(
@
Inject
(
'
REQUEST_URL
'
)
@
Optional
()
protected
requestUrl
:
string
)
{}
protected
requestUrl
:
string
;
constructor
(@
Inject
(
'
REQUEST_URL
'
)
@
Optional
()
requestUrl
:
string
)
{
this
.
requestUrl
=
isPlatformServer
(
PLATFORM_ID
)
?
requestUrl
:
window
.
location
.
toString
();
}
get
()
{
console
.
log
({
...
...
@@ -13,8 +17,6 @@ export class RequestUrlService {
requestUrl
:
this
.
requestUrl
,
});
return
isPlatformServer
(
PLATFORM_ID
)
?
this
.
requestUrl
:
window
.
location
.
toString
();
return
this
.
requestUrl
;
}
}
This diff is collapsed.
src/app/modules/channels/channel.component.spec.ts
View file @
4aa92b4c
...
...
@@ -109,7 +109,7 @@ describe('ChannelComponent', () => {
{
provide
:
FeaturesService
,
useValue
:
featuresServiceMock
},
{
provide
:
BlockListService
,
useValue
:
MockService
(
BlockListService
)
},
{
provide
:
ClientMetaService
,
useValue
:
clientMetaServiceMock
},
ConfigsService
,
{
provide
:
ConfigsService
,
useValue
:
MockService
(
ConfigsService
)
}
,
],
}).
compileComponents
();
// compile template and css
}));
...
...
This diff is collapsed.
Please
register
or
sign in
to comment