1
0
Fork 0

Add channel_name field to create-user view

This commit is contained in:
kimsible 2020-07-14 23:36:15 +02:00 committed by Chocobozzz
parent c2165d607e
commit 62fc691548
2 changed files with 12 additions and 0 deletions

View file

@ -44,6 +44,7 @@ export class UserCreateComponent extends UserEdit implements OnInit {
this.buildForm({
username: this.userValidatorsService.USER_USERNAME,
channelName: this.userValidatorsService.USER_USERNAME,
email: this.userValidatorsService.USER_EMAIL,
password: this.isPasswordOptional() ? this.userValidatorsService.USER_PASSWORD_OPTIONAL : this.userValidatorsService.USER_PASSWORD,
role: this.userValidatorsService.USER_ROLE,

View file

@ -90,6 +90,17 @@
</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">
<label i18n for="email">Email</label>
<input