mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Update UI
This commit is contained in:
@@ -886,20 +886,32 @@
|
|||||||
"message": "Enable Auto-fill On Page Load"
|
"message": "Enable Auto-fill On Page Load"
|
||||||
},
|
},
|
||||||
"enableAutoFillOnPageLoadDesc": {
|
"enableAutoFillOnPageLoadDesc": {
|
||||||
"message": "If a login form is detected, automatically perform an auto-fill when the web page loads. This is a global setting which may be overridden by individual logins."
|
"message": "If a login form is detected, automatically perform an auto-fill when the web page loads."
|
||||||
},
|
|
||||||
"autoFillOnPageLoadUseGlobalSettings": {
|
|
||||||
"message": "Use Global Settings"
|
|
||||||
},
|
|
||||||
"autoFillOnPageLoadAlways": {
|
|
||||||
"message": "Always"
|
|
||||||
},
|
|
||||||
"autoFillOnPageLoadNever": {
|
|
||||||
"message": "Never"
|
|
||||||
},
|
},
|
||||||
"experimentalFeature": {
|
"experimentalFeature": {
|
||||||
"message": "This is currently an experimental feature. Use at your own risk."
|
"message": "This is currently an experimental feature. Use at your own risk."
|
||||||
},
|
},
|
||||||
|
"defaultAutoFillOnPageLoad": {
|
||||||
|
"message": "Default auto-fill on page load setting"
|
||||||
|
},
|
||||||
|
"globalAutoFillOnPageLoadAlways": {
|
||||||
|
"message": "Always auto-fill"
|
||||||
|
},
|
||||||
|
"globalAutoFillOnPageLoadNever": {
|
||||||
|
"message": "Never auto-fill"
|
||||||
|
},
|
||||||
|
"itemAutoFillOnPageLoad": {
|
||||||
|
"message": "Auto-fill On Page Load (if enabled)"
|
||||||
|
},
|
||||||
|
"itemAutoFillOnPageLoadUseGlobal": {
|
||||||
|
"message": "Use default setting"
|
||||||
|
},
|
||||||
|
"itemAutoFillOnPageLoadAlways": {
|
||||||
|
"message": "Always auto-fill this login"
|
||||||
|
},
|
||||||
|
"itemAutoFillOnPageLoadNever": {
|
||||||
|
"message": "Never auto-fill this login"
|
||||||
|
},
|
||||||
"commandOpenPopup": {
|
"commandOpenPopup": {
|
||||||
"message": "Open vault popup"
|
"message": "Open vault popup"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,21 @@
|
|||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
color: themed('mutedColor');
|
color: themed('mutedColor');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sub-option {
|
||||||
|
margin-right: 5px;
|
||||||
|
margin-top: 10px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
select {
|
||||||
|
border: 1px solid #000000;
|
||||||
|
border-radius: $border-radius;
|
||||||
|
@include themify($themes) {
|
||||||
|
border-color: themed('boxBackgroundColor');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.list {
|
&.list {
|
||||||
|
|||||||
@@ -22,6 +22,13 @@
|
|||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
{{'enableAutoFillOnPageLoadDesc' | i18n}}
|
{{'enableAutoFillOnPageLoadDesc' | i18n}}
|
||||||
<b>{{'warning' | i18n}}</b>: {{'experimentalFeature' | i18n}}
|
<b>{{'warning' | i18n}}</b>: {{'experimentalFeature' | i18n}}
|
||||||
|
<div class="sub-option">
|
||||||
|
<label for="defaultAutofill">{{'defaultAutoFillOnPageLoad' | i18n}}</label>
|
||||||
|
<select id="defaultAutofill" name="DefaultAutofill" [(ngModel)]="autoFillOnPageLoadDefault"
|
||||||
|
[disabled]="!enableAutoFillOnPageLoad">
|
||||||
|
<option *ngFor="let o of autoFillOnPageLoadOptions" [ngValue]="o.value">{{o.name}}</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ import { ConstantsService } from 'jslib/services/constants.service';
|
|||||||
export class OptionsComponent implements OnInit {
|
export class OptionsComponent implements OnInit {
|
||||||
disableFavicon = false;
|
disableFavicon = false;
|
||||||
enableAutoFillOnPageLoad = false;
|
enableAutoFillOnPageLoad = false;
|
||||||
|
autoFillOnPageLoadDefault = false;
|
||||||
|
autoFillOnPageLoadOptions: any[];
|
||||||
disableAutoTotpCopy = false;
|
disableAutoTotpCopy = false;
|
||||||
disableContextMenuItem = false;
|
disableContextMenuItem = false;
|
||||||
disableAddLoginNotification = false;
|
disableAddLoginNotification = false;
|
||||||
@@ -64,6 +66,10 @@ export class OptionsComponent implements OnInit {
|
|||||||
{ name: i18nService.t('twoMinutes'), value: 120 },
|
{ name: i18nService.t('twoMinutes'), value: 120 },
|
||||||
{ name: i18nService.t('fiveMinutes'), value: 300 },
|
{ name: i18nService.t('fiveMinutes'), value: 300 },
|
||||||
];
|
];
|
||||||
|
this.autoFillOnPageLoadOptions = [
|
||||||
|
{ name: i18nService.t('globalAutoFillOnPageLoadAlways'), value: true },
|
||||||
|
{ name: i18nService.t('globalAutoFillOnPageLoadNever'), value: false },
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
|||||||
@@ -259,18 +259,15 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box" *ngIf="cipher.type === cipherType.Login">
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<div class="box-content-row" appBoxRow>
|
<div class="box-content-row" appBoxRow>
|
||||||
<label for="autofillOnPageLoad">{{'enableAutoFillOnPageLoad' | i18n}} </label>
|
<label for="autofillOnPageLoad">{{'itemAutoFillOnPageLoad' | i18n}} </label>
|
||||||
<select id="autofillOnPageLoad" name="AutofillOnPageLoad" [(ngModel)]="cipher.login.autofillOnPageLoad">
|
<select id="autofillOnPageLoad" name="AutofillOnPageLoad" [(ngModel)]="cipher.login.autofillOnPageLoad">
|
||||||
<option *ngFor="let o of autofillOnPageLoadOptions" [ngValue]="o.value">{{o.name}}</option>
|
<option *ngFor="let o of autofillOnPageLoadOptions" [ngValue]="o.value">{{o.name}}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-footer">
|
|
||||||
<b>{{'warning' | i18n}}</b>: {{'experimentalFeature' | i18n}}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
|
|||||||
Reference in New Issue
Block a user