From f98e66b01e0eaa351fdb2a8821ef76f7807f1083 Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Wed, 21 Apr 2021 12:52:40 +0000 Subject: [PATCH] [Monitor | Trunk]: Add smooth scroll git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor@60945 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.ts | 4 +- src/index.html | 89 ++++++++++++++++++++-------------------- src/index.prod.html | 83 ++++++++++++++++++------------------- 3 files changed, 88 insertions(+), 88 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 16b6e4a..9f30556 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -11,6 +11,7 @@ import {properties} from "../environments/environment"; import {BehaviorSubject, Subscriber} from "rxjs"; import {StakeholderService} from "./openaireLibrary/monitor/services/stakeholder.service"; import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component"; +import {SmoothScroll} from "./openaireLibrary/utils/smooth-scroll"; @Component({ selector: 'app-root', @@ -61,7 +62,7 @@ export class AppComponent { private subscriptions: any[] = []; constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, - private router: Router, private stakeholderService: StakeholderService, + private router: Router, private stakeholderService: StakeholderService, private smoothScroll: SmoothScroll, private userManagementService: UserManagementService) { this.subscriptions.push(router.events.forEach((event) => { if (event instanceof NavigationStart) { @@ -103,6 +104,7 @@ export class AppComponent { }); this.userManagementService.clearSubscriptions(); this.stakeholderService.clearSubscriptions(); + this.smoothScroll.clearSubscriptions(); } public buildMenu() { diff --git a/src/index.html b/src/index.html index 2e5a4e0..6759a54 100644 --- a/src/index.html +++ b/src/index.html @@ -1,57 +1,56 @@ - - - - - - - + + + + + + + - - + + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ - - + diff --git a/src/index.prod.html b/src/index.prod.html index 4191642..fb7b12b 100644 --- a/src/index.prod.html +++ b/src/index.prod.html @@ -1,57 +1,56 @@ - - - - - - - + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ - - +