aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-15 15:52:18 +0100
committerChocobozzz <me@florianbigard.com>2019-02-15 15:52:18 +0100
commit41d713446c2152d47943ddb0c841a9e36ca5a9db (patch)
tree7b22f6f7ea5652107ef503470d2455c4bb087799 /client/src/app/+about
parent17036be5bc2f14dc4e66053087e39887599df4de (diff)
downloadPeerTube-41d713446c2152d47943ddb0c841a9e36ca5a9db.tar.gz
PeerTube-41d713446c2152d47943ddb0c841a9e36ca5a9db.tar.zst
PeerTube-41d713446c2152d47943ddb0c841a9e36ca5a9db.zip
Lazy import some modules
Diffstat (limited to 'client/src/app/+about')
-rw-r--r--client/src/app/+about/about-instance/about-instance.component.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/+about/about-instance/about-instance.component.ts b/client/src/app/+about/about-instance/about-instance.component.ts
index a1b30fa8c..ec572ff80 100644
--- a/client/src/app/+about/about-instance/about-instance.component.ts
+++ b/client/src/app/+about/about-instance/about-instance.component.ts
@@ -44,10 +44,11 @@ export class AboutInstanceComponent implements OnInit {
44 ngOnInit () { 44 ngOnInit () {
45 this.instanceService.getAbout() 45 this.instanceService.getAbout()
46 .subscribe( 46 .subscribe(
47 res => { 47 async res => {
48 this.shortDescription = res.instance.shortDescription 48 this.shortDescription = res.instance.shortDescription
49 this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description) 49
50 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) 50 this.descriptionHTML = await this.markdownService.textMarkdownToHTML(res.instance.description)
51 this.termsHTML = await this.markdownService.textMarkdownToHTML(res.instance.terms)
51 }, 52 },
52 53
53 () => this.notifier.error(this.i18n('Cannot get about information from server')) 54 () => this.notifier.error(this.i18n('Cannot get about information from server'))