aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-05-31 11:33:49 +0200
committerChocobozzz <me@florianbigard.com>2021-05-31 11:33:49 +0200
commit8ee25e17b88b970703f4df9e74cb4726bbffd837 (patch)
tree450d73715c747c82efe6c919ebeda6411c01c5e0 /client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts
parent15f35256af15b97d2298cc44e76ffcafe73a1c88 (diff)
downloadPeerTube-8ee25e17b88b970703f4df9e74cb4726bbffd837.tar.gz
PeerTube-8ee25e17b88b970703f4df9e74cb4726bbffd837.tar.zst
PeerTube-8ee25e17b88b970703f4df9e74cb4726bbffd837.zip
Add ability to set custom markdown in description
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts
index 7decf8f75..1923ede39 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts
@@ -7,7 +7,7 @@ import { CustomMarkupService } from '@app/shared/shared-custom-markup'
7 templateUrl: './edit-homepage.component.html', 7 templateUrl: './edit-homepage.component.html',
8 styleUrls: [ './edit-custom-config.component.scss' ] 8 styleUrls: [ './edit-custom-config.component.scss' ]
9}) 9})
10export class EditHomepageComponent implements OnInit { 10export class EditHomepageComponent {
11 @Input() form: FormGroup 11 @Input() form: FormGroup
12 @Input() formErrors: any 12 @Input() formErrors: any
13 13
@@ -17,9 +17,7 @@ export class EditHomepageComponent implements OnInit {
17 17
18 } 18 }
19 19
20 ngOnInit () { 20 getCustomMarkdownRenderer () {
21 this.customMarkdownRenderer = async (text: string) => { 21 return this.customMarkup.getCustomMarkdownRenderer()
22 return this.customMarkup.buildElement(text)
23 }
24 } 22 }
25} 23}