mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-28 03:23:57 -06:00
✨ Add input-password #3375
This commit is contained in:
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
Block a user