]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.ts
Add ability to set custom markdown in description
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / config / edit-custom-config / edit-instance-information.component.ts
CommitLineData
5f46d28c
C
1import { SelectOptionsItem } from 'src/types/select-options-item.model'
2import { Component, Input } from '@angular/core'
3import { FormGroup } from '@angular/forms'
8ee25e17 4import { CustomMarkupService } from '@app/shared/shared-custom-markup'
5f46d28c
C
5
6@Component({
7 selector: 'my-edit-instance-information',
8 templateUrl: './edit-instance-information.component.html',
9 styleUrls: [ './edit-custom-config.component.scss' ]
10})
11export class EditInstanceInformationComponent {
12 @Input() form: FormGroup
13 @Input() formErrors: any
14
15 @Input() languageItems: SelectOptionsItem[] = []
16 @Input() categoryItems: SelectOptionsItem[] = []
8ee25e17
C
17
18 constructor (private customMarkup: CustomMarkupService) {
19
20 }
21
22 getCustomMarkdownRenderer () {
23 return this.customMarkup.getCustomMarkdownRenderer()
24 }
5f46d28c 25}