Add channel_name field to create-user view
This commit is contained in:
parent
c2165d607e
commit
62fc691548
|
@ -44,6 +44,7 @@ export class UserCreateComponent extends UserEdit implements OnInit {
|
||||||
|
|
||||||
this.buildForm({
|
this.buildForm({
|
||||||
username: this.userValidatorsService.USER_USERNAME,
|
username: this.userValidatorsService.USER_USERNAME,
|
||||||
|
channelName: this.userValidatorsService.USER_USERNAME,
|
||||||
email: this.userValidatorsService.USER_EMAIL,
|
email: this.userValidatorsService.USER_EMAIL,
|
||||||
password: this.isPasswordOptional() ? this.userValidatorsService.USER_PASSWORD_OPTIONAL : this.userValidatorsService.USER_PASSWORD,
|
password: this.isPasswordOptional() ? this.userValidatorsService.USER_PASSWORD_OPTIONAL : this.userValidatorsService.USER_PASSWORD,
|
||||||
role: this.userValidatorsService.USER_ROLE,
|
role: this.userValidatorsService.USER_ROLE,
|
||||||
|
|
|
@ -90,6 +90,17 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group" *ngIf="isCreation()">
|
||||||
|
<label i18n for="channelName">Channel name</label>
|
||||||
|
<input
|
||||||
|
type="text" id="channelName" i18n-placeholder placeholder="john_channel" class="form-control"
|
||||||
|
formControlName="channelName" [ngClass]="{ 'input-error': formErrors['channelName'] }"
|
||||||
|
>
|
||||||
|
<div *ngIf="formErrors.channelName" class="form-error">
|
||||||
|
{{ formErrors.channelName }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label i18n for="email">Email</label>
|
<label i18n for="email">Email</label>
|
||||||
<input
|
<input
|
||||||
|
|
Loading…
Reference in New Issue