diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-23 10:41:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-23 10:41:08 +0200 |
commit | 45c0fb35eb3904cbea91ff1ee450d308bbb4ebdb (patch) | |
tree | d70e91662e633079d862412f884538b441eef842 /client/src/app/about/about.component.ts | |
parent | b365bb43c2f399dfc5191443956a8c48373fbffc (diff) | |
download | PeerTube-45c0fb35eb3904cbea91ff1ee450d308bbb4ebdb.tar.gz PeerTube-45c0fb35eb3904cbea91ff1ee450d308bbb4ebdb.tar.zst PeerTube-45c0fb35eb3904cbea91ff1ee450d308bbb4ebdb.zip |
Add short description in about page
Diffstat (limited to 'client/src/app/about/about.component.ts')
-rw-r--r-- | client/src/app/about/about.component.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/about/about.component.ts b/client/src/app/about/about.component.ts index 2fd48f0d3..3948d5c46 100644 --- a/client/src/app/about/about.component.ts +++ b/client/src/app/about/about.component.ts | |||
@@ -10,6 +10,7 @@ import { NotificationsService } from 'angular2-notifications' | |||
10 | }) | 10 | }) |
11 | 11 | ||
12 | export class AboutComponent implements OnInit { | 12 | export class AboutComponent implements OnInit { |
13 | shortDescription = '' | ||
13 | descriptionHTML = '' | 14 | descriptionHTML = '' |
14 | termsHTML = '' | 15 | termsHTML = '' |
15 | 16 | ||
@@ -35,6 +36,7 @@ export class AboutComponent implements OnInit { | |||
35 | this.serverService.getAbout() | 36 | this.serverService.getAbout() |
36 | .subscribe( | 37 | .subscribe( |
37 | res => { | 38 | res => { |
39 | this.shortDescription = res.instance.shortDescription | ||
38 | this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description) | 40 | this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description) |
39 | this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) | 41 | this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) |
40 | }, | 42 | }, |