aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorkimsible <kimsible@users.noreply.github.com>2020-07-14 23:36:15 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-11 08:46:35 +0200
commit62fc691548594bc96fd43e0c29dcd4191cb525f5 (patch)
treeb7084bf7eff3b77aa91ddaa65d9c6b875150de60
parentc2165d607e63c825fef9d3e13cbee2ba3baf92bc (diff)
downloadPeerTube-62fc691548594bc96fd43e0c29dcd4191cb525f5.tar.gz
PeerTube-62fc691548594bc96fd43e0c29dcd4191cb525f5.tar.zst
PeerTube-62fc691548594bc96fd43e0c29dcd4191cb525f5.zip
Add channel_name field to create-user view
-rw-r--r--client/src/app/+admin/users/user-edit/user-create.component.ts1
-rw-r--r--client/src/app/+admin/users/user-edit/user-edit.component.html11
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