X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2F%2Babout%2Fabout-instance%2Fabout-instance.component.ts;h=ec572ff806f5fff7078c57d7d68541700af6b3b1;hb=41d713446c2152d47943ddb0c841a9e36ca5a9db;hp=a1b30fa8cfb94f2b95c79f0c69ed8b5ccf5ca836;hpb=17036be5bc2f14dc4e66053087e39887599df4de;p=github%2FChocobozzz%2FPeerTube.git 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 { ngOnInit () { this.instanceService.getAbout() .subscribe( - res => { + async res => { this.shortDescription = res.instance.shortDescription - this.descriptionHTML = this.markdownService.textMarkdownToHTML(res.instance.description) - this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) + + this.descriptionHTML = await this.markdownService.textMarkdownToHTML(res.instance.description) + this.termsHTML = await this.markdownService.textMarkdownToHTML(res.instance.terms) }, () => this.notifier.error(this.i18n('Cannot get about information from server'))