From 5411da31d1070654e4c4b80ad3ad6889b048a4db Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 23 Mar 2020 23:43:51 +0100 Subject: Describe user video settings checkboxes, put emphasis on p2p Also improve more info links about p2p and privacy in PeerTube, present in the privacy concern notice and in the video settings. --- .../app/+about/about-peertube/about-peertube.component.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'client/src/app/+about/about-peertube/about-peertube.component.ts') diff --git a/client/src/app/+about/about-peertube/about-peertube.component.ts b/client/src/app/+about/about-peertube/about-peertube.component.ts index 64fd30837..98c5f93c3 100644 --- a/client/src/app/+about/about-peertube/about-peertube.component.ts +++ b/client/src/app/+about/about-peertube/about-peertube.component.ts @@ -1,4 +1,5 @@ -import { Component } from '@angular/core' +import { Component, AfterViewChecked } from '@angular/core' +import { ViewportScroller } from '@angular/common' @Component({ selector: 'my-about-peertube', @@ -6,5 +7,12 @@ import { Component } from '@angular/core' styleUrls: [ './about-peertube.component.scss' ] }) -export class AboutPeertubeComponent { +export class AboutPeertubeComponent implements AfterViewChecked { + constructor ( + private viewportScroller: ViewportScroller + ) {} + + ngAfterViewChecked () { + if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', '')) + } } -- cgit v1.2.3