Skip to content

Commit

Permalink
✨ Add input-password Chocobozzz#3375
Browse files Browse the repository at this point in the history
  • Loading branch information
madmath03 committed Nov 27, 2020
1 parent 4a7f902 commit ffb681e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion shared/models/plugins/register-client-form-field.model.ts
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion support/doc/plugins/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
})

Expand Down

0 comments on commit ffb681e

Please sign in to comment.