]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+home/home.component.ts
Merge branch 'release/5.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +home / home.component.ts
CommitLineData
2539932e 1import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
2539932e
C
2import { CustomPageService } from '@app/shared/shared-main/custom-page'
3
4@Component({
4158e67c 5 templateUrl: './home.component.html'
2539932e
C
6})
7
8export class HomeComponent implements OnInit {
9 @ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
10
8ee25e17
C
11 homepageContent: string
12
2539932e 13 constructor (
2539932e
C
14 private customPageService: CustomPageService
15 ) { }
16
98ab5dc8 17 ngOnInit () {
2539932e 18 this.customPageService.getInstanceHomepage()
8ee25e17 19 .subscribe(({ content }) => this.homepageContent = content)
2539932e
C
20 }
21}