mirror of https://github.com/Chocobozzz/PeerTube
Add channel_name field to create-user view
parent
c2165d607e
commit
62fc691548
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue