1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-11 05:43:26 +00:00

requested updates

This commit is contained in:
Luc
2021-06-21 19:18:14 -07:00
parent a6aafe7593
commit 4bd1387b83
4 changed files with 10 additions and 10 deletions

View File

@@ -19,7 +19,7 @@
<input type="{{showSecret ? 'text' : 'password'}}" id="client_secret" name="ClientSecret" <input type="{{showSecret ? 'text' : 'password'}}" id="client_secret" name="ClientSecret"
[(ngModel)]="clientSecret" class="form-control"> [(ngModel)]="clientSecret" class="form-control">
<div class="input-group-append"> <div class="input-group-append">
<button type="button" class="btn btn-outline-primary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleSecret()"> <button type="button" class="ml-1 btn btn-link" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleSecret()">
<i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showSecret, 'fa-eye-slash': showSecret}"></i> <i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showSecret, 'fa-eye-slash': showSecret}"></i>
</button> </button>
</div> </div>

View File

@@ -80,6 +80,6 @@ export class ApiKeyComponent {
} }
toggleSecret() { toggleSecret() {
this.showSecret = !this.showSecret; this.showSecret = !this.showSecret;
document.getElementById('clientSecret').focus(); document.getElementById('client_secret').focus();
} }
} }

View File

@@ -125,7 +125,7 @@
<input type="{{showLdapPassword ? 'text' : 'password'}}" class="form-control" id="password" name="Password" <input type="{{showLdapPassword ? 'text' : 'password'}}" class="form-control" id="password" name="Password"
[(ngModel)]="ldap.password"> [(ngModel)]="ldap.password">
<div class="input-group-append"> <div class="input-group-append">
<button type="button" class="btn btn-outline-primary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleLdapPassword()"> <button type="button" class="btn btn-outline-secondary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleLdapPassword()">
<i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showLdapPassword, 'fa-eye-slash': showLdapPassword}"></i> <i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showLdapPassword, 'fa-eye-slash': showLdapPassword}"></i>
</button> </button>
</div> </div>
@@ -150,7 +150,7 @@
<input type="{{showAzureKey ? 'text' : 'password'}}" class="form-control" id="secretKey" name="SecretKey" <input type="{{showAzureKey ? 'text' : 'password'}}" class="form-control" id="secretKey" name="SecretKey"
[(ngModel)]="azure.key"> [(ngModel)]="azure.key">
<div class="input-group-append"> <div class="input-group-append">
<button type="button" class="btn btn-outline-primary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleAzureKey()"> <button type="button" class="btn btn-outline-secondary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleAzureKey()">
<i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showAzureKey, 'fa-eye-slash': showAzureKey}"></i> <i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showAzureKey, 'fa-eye-slash': showAzureKey}"></i>
</button> </button>
</div> </div>
@@ -169,7 +169,7 @@
<input type="{{showOktaKey ? 'text' : 'password'}}" class="form-control" id="oktaToken" name="OktaToken" <input type="{{showOktaKey ? 'text' : 'password'}}" class="form-control" id="oktaToken" name="OktaToken"
[(ngModel)]="okta.token"> [(ngModel)]="okta.token">
<div class="input-group-append"> <div class="input-group-append">
<button type="button" class="btn btn-outline-primary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleOktaKey()"> <button type="button" class="btn btn-outline-secondary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleOktaKey()">
<i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showOktaKey, 'fa-eye-slash': showOktaKey}"></i> <i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showOktaKey, 'fa-eye-slash': showOktaKey}"></i>
</button> </button>
</div> </div>
@@ -188,7 +188,7 @@
<input type="{{showOneLoginSecret ? 'text' : 'password'}}" class="form-control" id="oneLoginClientSecret" name="OneLoginClientSecret" <input type="{{showOneLoginSecret ? 'text' : 'password'}}" class="form-control" id="oneLoginClientSecret" name="OneLoginClientSecret"
[(ngModel)]="oneLogin.clientSecret"> [(ngModel)]="oneLogin.clientSecret">
<div class="input-group-append"> <div class="input-group-append">
<button type="button" class="btn btn-outline-primary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleOneLoginSecret()"> <button type="button" class="btn btn-outline-secondary" appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleOneLoginSecret()">
<i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showOneLoginSecret, 'fa-eye-slash': showOneLoginSecret}"></i> <i class="fa fa-lg" aria-hidden="true"[ngClass]="{'fa-eye': !showOneLoginSecret, 'fa-eye-slash': showOneLoginSecret}"></i>
</button> </button>
</div> </div>

View File

@@ -132,18 +132,18 @@ export class SettingsComponent implements OnInit, OnDestroy {
} }
toggleLdapPassword() { toggleLdapPassword() {
this.showLdapPassword = !this.showLdapPassword; this.showLdapPassword = !this.showLdapPassword;
document.getElementById('masterPassword').focus(); document.getElementById('password').focus();
} }
toggleAzureKey() { toggleAzureKey() {
this.showAzureKey = !this.showAzureKey; this.showAzureKey = !this.showAzureKey;
document.getElementById('masterPassword').focus(); document.getElementById('secretKey').focus();
} }
toggleOktaKey() { toggleOktaKey() {
this.showOktaKey = !this.showOktaKey; this.showOktaKey = !this.showOktaKey;
document.getElementById('masterPassword').focus(); document.getElementById('oktaToken').focus();
} }
toggleOneLoginSecret() { toggleOneLoginSecret() {
this.showOneLoginSecret = !this.showOneLoginSecret; this.showOneLoginSecret = !this.showOneLoginSecret;
document.getElementById('masterPassword').focus(); document.getElementById('oneLoginClientSecret').focus();
} }
} }