mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-22 21:02:34 +08:00
* Move vault-timeout-input to @bitwarden/auth/angular Move vault-timeout-input.component.ts to @bitwarden/auth/angular/vault-timeout-input Expose via barrel file Fix imports on clients * Add dependencies to package.json Not necessary right now, but good practice for once we move to building each package independently * Make VaultTimeoutInputComponent a standalone component * Update selector to present team ownership * Use new standalone on web Move vault-timeout-input.component.html to @bitwarden/auth/angular/vault-timeout-input/ Delete old vault-timeout-input.component on web Register new component on loose-components-module Update used selector in preferences.component * Remove unneeded export of VaultTimeoutInputComponent --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
<div [formGroup]="form">
|
|
<bit-form-field>
|
|
<bit-label>{{ "vaultTimeout" | i18n }}</bit-label>
|
|
<bit-select formControlName="vaultTimeout">
|
|
<bit-option
|
|
*ngFor="let o of vaultTimeoutOptions"
|
|
[value]="o.value"
|
|
[label]="o.name"
|
|
></bit-option>
|
|
</bit-select>
|
|
<bit-hint class="tw-text-sm">{{
|
|
((canLockVault$ | async) ? "vaultTimeoutDesc" : "vaultTimeoutLogoutDesc") | i18n
|
|
}}</bit-hint>
|
|
</bit-form-field>
|
|
<div class="tw-grid tw-grid-cols-12 tw-gap-4" *ngIf="showCustom" formGroupName="custom">
|
|
<bit-form-field class="tw-col-span-6">
|
|
<bit-label>{{ "customVaultTimeout" | i18n }}</bit-label>
|
|
<input bitInput type="number" min="0" formControlName="hours" />
|
|
<bit-hint>{{ "hours" | i18n }}</bit-hint>
|
|
</bit-form-field>
|
|
<bit-form-field class="tw-col-span-6 tw-self-end">
|
|
<input bitInput type="number" min="0" name="minutes" formControlName="minutes" />
|
|
<bit-hint>{{ "minutes" | i18n }}</bit-hint>
|
|
</bit-form-field>
|
|
</div>
|
|
<small *ngIf="!exceedsMinimumTimout" class="tw-text-danger">
|
|
<i class="bwi bwi-error" aria-hidden="true"></i> {{ "vaultCustomTimeoutMinimum" | i18n }}
|
|
</small>
|
|
</div>
|