aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about/about-peertube/about-peertube.component.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-03-23 23:43:51 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-03-23 23:43:53 +0100
commit5411da31d1070654e4c4b80ad3ad6889b048a4db (patch)
tree5a7d09243bac71d27f8007f3dac21d3e8035b773 /client/src/app/+about/about-peertube/about-peertube.component.ts
parent5a390259b24cb7a4350a0c95380bd362e4542d83 (diff)
downloadPeerTube-5411da31d1070654e4c4b80ad3ad6889b048a4db.tar.gz
PeerTube-5411da31d1070654e4c4b80ad3ad6889b048a4db.tar.zst
PeerTube-5411da31d1070654e4c4b80ad3ad6889b048a4db.zip
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.
Diffstat (limited to 'client/src/app/+about/about-peertube/about-peertube.component.ts')
-rw-r--r--client/src/app/+about/about-peertube/about-peertube.component.ts12
1 files changed, 10 insertions, 2 deletions
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 @@
1import { Component } from '@angular/core' 1import { Component, AfterViewChecked } from '@angular/core'
2import { ViewportScroller } from '@angular/common'
2 3
3@Component({ 4@Component({
4 selector: 'my-about-peertube', 5 selector: 'my-about-peertube',
@@ -6,5 +7,12 @@ import { Component } from '@angular/core'
6 styleUrls: [ './about-peertube.component.scss' ] 7 styleUrls: [ './about-peertube.component.scss' ]
7}) 8})
8 9
9export class AboutPeertubeComponent { 10export class AboutPeertubeComponent implements AfterViewChecked {
11 constructor (
12 private viewportScroller: ViewportScroller
13 ) {}
14
15 ngAfterViewChecked () {
16 if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))
17 }
10} 18}