diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-create.component.ts | 1 | ||||
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-edit.component.html | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-create.component.ts b/client/src/app/+admin/users/user-edit/user-create.component.ts index f9f5b90bd..fc4013a04 100644 --- a/client/src/app/+admin/users/user-edit/user-create.component.ts +++ b/client/src/app/+admin/users/user-edit/user-create.component.ts | |||
@@ -44,6 +44,7 @@ export class UserCreateComponent extends UserEdit implements OnInit { | |||
44 | 44 | ||
45 | this.buildForm({ | 45 | this.buildForm({ |
46 | username: this.userValidatorsService.USER_USERNAME, | 46 | username: this.userValidatorsService.USER_USERNAME, |
47 | channelName: this.userValidatorsService.USER_USERNAME, | ||
47 | email: this.userValidatorsService.USER_EMAIL, | 48 | email: this.userValidatorsService.USER_EMAIL, |
48 | password: this.isPasswordOptional() ? this.userValidatorsService.USER_PASSWORD_OPTIONAL : this.userValidatorsService.USER_PASSWORD, | 49 | password: this.isPasswordOptional() ? this.userValidatorsService.USER_PASSWORD_OPTIONAL : this.userValidatorsService.USER_PASSWORD, |
49 | role: this.userValidatorsService.USER_ROLE, | 50 | role: this.userValidatorsService.USER_ROLE, |
diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index d103f8e2f..0c7900529 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html | |||
@@ -90,6 +90,17 @@ | |||
90 | </div> | 90 | </div> |
91 | </div> | 91 | </div> |
92 | 92 | ||
93 | <div class="form-group" *ngIf="isCreation()"> | ||
94 | <label i18n for="channelName">Channel name</label> | ||
95 | <input | ||
96 | type="text" id="channelName" i18n-placeholder placeholder="john_channel" class="form-control" | ||
97 | formControlName="channelName" [ngClass]="{ 'input-error': formErrors['channelName'] }" | ||
98 | > | ||
99 | <div *ngIf="formErrors.channelName" class="form-error"> | ||
100 | {{ formErrors.channelName }} | ||
101 | </div> | ||
102 | </div> | ||
103 | |||
93 | <div class="form-group"> | 104 | <div class="form-group"> |
94 | <label i18n for="email">Email</label> | 105 | <label i18n for="email">Email</label> |
95 | <input | 106 | <input |