aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-12-09 13:01:00 +0100
committerRigel Kent <sendmemail@rigelk.eu>2020-12-09 13:01:00 +0100
commit23cd3129a9f13691c25c1f0935cc781a9aa882db (patch)
treefd52f583fee02333e48edb09417f4bcfa2f90240 /client
parentb49f22d8f9a52ab75fd38db2d377249eb58fa678 (diff)
downloadPeerTube-23cd3129a9f13691c25c1f0935cc781a9aa882db.tar.gz
PeerTube-23cd3129a9f13691c25c1f0935cc781a9aa882db.tar.zst
PeerTube-23cd3129a9f13691c25c1f0935cc781a9aa882db.zip
fix tabindex on login page
Diffstat (limited to 'client')
-rw-r--r--client/src/app/+login/login.component.html2
-rw-r--r--client/src/app/shared/shared-forms/input-toggle-hidden.component.html2
-rw-r--r--client/src/app/shared/shared-forms/input-toggle-hidden.component.ts1
3 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+login/login.component.html b/client/src/app/+login/login.component.html
index a2362d978..e0be3b415 100644
--- a/client/src/app/+login/login.component.html
+++ b/client/src/app/+login/login.component.html
@@ -35,7 +35,7 @@
35 <my-input-toggle-hidden formControlName="password" id="password" 35 <my-input-toggle-hidden formControlName="password" id="password"
36 i18n-placeholder placeholder="Password" 36 i18n-placeholder placeholder="Password"
37 [ngClass]="{ 'input-error': formErrors['password'] }" 37 [ngClass]="{ 'input-error': formErrors['password'] }"
38 autocomplete="current-password" tabindex="2"></my-input-toggle-hidden> 38 autocomplete="current-password" [tabindex]="2"></my-input-toggle-hidden>
39 <div *ngIf="formErrors.password" class="form-error"> 39 <div *ngIf="formErrors.password" class="form-error">
40 {{ formErrors.password }} 40 {{ formErrors.password }}
41 </div> 41 </div>
diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html
index f59dc6215..af7c6650f 100644
--- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html
+++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html
@@ -1,5 +1,5 @@
1<div class="input-group input-group-sm"> 1<div class="input-group input-group-sm">
2 <input [id]="id" [autocomplete]="autocomplete" [value]="value" [placeholder]="placeholder" [(ngModel)]="value" (ngModelChange)="update()" [ngClass]="{ 'readonly': readonly }" [readonly]="readonly" 2 <input [id]="id" [autocomplete]="autocomplete" [value]="value" [placeholder]="placeholder" [tabindex]="tabindex" [(ngModel)]="value" (ngModelChange)="update()" [ngClass]="{ 'readonly': readonly }" [readonly]="readonly"
3 #input (click)="input.select()" (input)="update()" (change)="update()" [type]="inputType" class="form-control" /> 3 #input (click)="input.select()" (input)="update()" (change)="update()" [type]="inputType" class="form-control" />
4 4
5 <div *ngIf="withToggle || withCopy" class="input-group-append"> 5 <div *ngIf="withToggle || withCopy" class="input-group-append">
diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts b/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts
index 0e974426b..56e5b9762 100644
--- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts
+++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.ts
@@ -19,6 +19,7 @@ export class InputToggleHiddenComponent implements ControlValueAccessor {
19 @Input() value = '' 19 @Input() value = ''
20 @Input() autocomplete = 'off' 20 @Input() autocomplete = 'off'
21 @Input() placeholder = '' 21 @Input() placeholder = ''
22 @Input() tabindex = 0
22 @Input() withToggle = true 23 @Input() withToggle = true
23 @Input() withCopy = false 24 @Input() withCopy = false
24 @Input() readonly = false 25 @Input() readonly = false