mirror of https://github.com/Chocobozzz/PeerTube
✨ Add input-password #3375
parent
ee663cce00
commit
972de8f111
|
@ -5,6 +5,8 @@
|
|||
|
||||
<input *ngIf="setting.type === 'input'" type="text" [id]="setting.name" [formControlName]="setting.name" />
|
||||
|
||||
<input *ngIf="setting.type === 'input-password'" type="password" [id]="setting.name" [formControlName]="setting.name" />
|
||||
|
||||
<textarea *ngIf="setting.type === 'input-textarea'" type="text" [id]="setting.name" [formControlName]="setting.name"></textarea>
|
||||
|
||||
<my-help *ngIf="setting.type === 'markdown-text'" helpType="markdownText"></my-help>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export interface RegisterClientFormFieldOptions {
|
||||
name: string
|
||||
label: string
|
||||
type: 'input' | 'input-checkbox' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
|
||||
type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
|
||||
|
||||
descriptionHTML?: string
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ registerSetting({
|
|||
name: 'admin-name',
|
||||
label: 'Admin name',
|
||||
type: 'input',
|
||||
// type: input | input-checkbox | input-textarea | markdown-text | markdown-enhanced
|
||||
// type: input | input-checkbox | input-password | input-textarea | markdown-text | markdown-enhanced
|
||||
default: 'my super name'
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue