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
818
Merge Requests
51
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
87b08fbc
Commit
87b08fbc
authored
32 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(feat): Disable scroll listener on Pro channels
parent
b85b5d0c
goal/pro-sso
1 merge request
!656
SSO for Pro sites
Pipeline
#97056825
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
src/app/modules/modals/signup/signup-on-scroll.ts
View file @
87b08fbc
import
{
Component
,
OnDestroy
,
OnInit
,
ViewChild
}
from
'
@angular/core
'
;
import
{
Component
,
Input
,
OnDestroy
,
OnInit
,
ViewChild
}
from
'
@angular/core
'
;
import
{
NavigationEnd
,
Router
}
from
'
@angular/router
'
;
import
{
Subscription
}
from
'
rxjs
'
;
...
...
@@ -23,6 +23,8 @@ export class SignupOnScrollModal implements OnInit, OnDestroy {
routerSubscription
:
Subscription
;
@
Input
()
disableScrollListener
:
true
;
@
ViewChild
(
'
modal
'
,
{
static
:
true
})
modal
:
SignupModal
;
constructor
(
...
...
@@ -41,6 +43,10 @@ export class SignupOnScrollModal implements OnInit, OnDestroy {
}
listen
()
{
if
(
!
this
.
disableScrollListener
)
{
return
;
}
this
.
routerSubscription
=
this
.
router
.
events
.
subscribe
(
(
navigationEvent
:
NavigationEnd
)
=>
{
try
{
...
...
@@ -90,7 +96,10 @@ export class SignupOnScrollModal implements OnInit, OnDestroy {
}
unListen
()
{
this
.
routerSubscription
.
unsubscribe
();
if
(
this
.
routerSubscription
)
{
this
.
routerSubscription
.
unsubscribe
();
}
this
.
unlistenScroll
();
}
...
...
This diff is collapsed.
src/app/modules/pro/channel/channel.component.html
View file @
87b08fbc
...
...
@@ -124,4 +124,6 @@
</div>
<m-overlay-modal
#overlayModal
></m-overlay-modal>
<m-modal-signup-on-scroll></m-modal-signup-on-scroll>
<m-modal-signup-on-scroll
[disableScrollListener]=
"false"
></m-modal-signup-on-scroll>
This diff is collapsed.
Please
register
or
sign in
to comment