1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-22 07:50:04 +02:00

[PM-13675] Adjust browser autofill override instructions conditions and placement in the settings view (#11559)

* adjust browser autofill override instructions conditions and placement in the settings view

* adjust placement of override instructions in the refresh component for Firefox
This commit is contained in:
Jonathan Prusik 2024-10-21 09:50:59 -04:00 committed by GitHub
parent 6335dd6cd7
commit c9de05de95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 31 additions and 17 deletions

View File

@ -41,8 +41,19 @@
</option> </option>
</select> </select>
</div> </div>
<div class="box-footer" *ngIf="accountSwitcherEnabled && canOverrideBrowserAutofillSetting"> <div class="box-footer" *ngIf="accountSwitcherEnabled || !canOverrideBrowserAutofillSetting">
{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }} <span *ngIf="accountSwitcherEnabled">{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}</span>
<span *ngIf="!canOverrideBrowserAutofillSetting">
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a
[attr.href]="disablePasswordManagerLink"
(click)="openDisablePasswordManagerLink($event)"
target="_blank"
rel="noreferrer"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettingsLink" | i18n }}
</a>
</span>
</div> </div>
</div> </div>
</div> </div>
@ -86,7 +97,7 @@
/> />
</div> </div>
</div> </div>
<div class="box-footer"> <div class="box-footer" *ngIf="canOverrideBrowserAutofillSetting">
<span *ngIf="accountSwitcherEnabled">{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}</span> <span *ngIf="accountSwitcherEnabled">{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}</span>
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }} {{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a <a

View File

@ -11,7 +11,7 @@
<h2 bitTypography="h6">{{ "autofillSuggestionsSectionTitle" | i18n }}</h2> <h2 bitTypography="h6">{{ "autofillSuggestionsSectionTitle" | i18n }}</h2>
</bit-section-header> </bit-section-header>
<bit-card> <bit-card>
<bit-form-control> <bit-form-control [disableMargin]="!enableInlineMenu && !canOverrideBrowserAutofillSetting">
<input <input
bitCheckbox bitCheckbox
id="show-inline-menu" id="show-inline-menu"
@ -26,6 +26,22 @@
> >
{{ "showInlineMenuOnFormFieldsDescAlt" | i18n }} {{ "showInlineMenuOnFormFieldsDescAlt" | i18n }}
</bit-hint> </bit-hint>
<bit-hint
*ngIf="!canOverrideBrowserAutofillSetting"
[class]="!enableInlineMenu ? 'tw-text-sm tw-mb-6' : 'tw-text-sm'"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a
bitLink
class="tw-no-underline"
rel="noreferrer"
target="_blank"
(click)="openURI($event, disablePasswordManagerURI)"
[attr.href]="disablePasswordManagerURI"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettingsLink" | i18n }}
</a>
</bit-hint>
</bit-form-control> </bit-form-control>
<bit-form-control <bit-form-control
*ngIf="inlineMenuPositioningImprovementsEnabled && enableInlineMenu" *ngIf="inlineMenuPositioningImprovementsEnabled && enableInlineMenu"
@ -68,19 +84,6 @@
<bit-label for="show-autofill-suggestions-on-icon"> <bit-label for="show-autofill-suggestions-on-icon">
{{ "showInlineMenuOnIconSelectionLabel" | i18n }} {{ "showInlineMenuOnIconSelectionLabel" | i18n }}
</bit-label> </bit-label>
<bit-hint class="tw-text-sm" *ngIf="!canOverrideBrowserAutofillSetting">
{{ "turnOffBrowserBuiltInPasswordManagerSettings" | i18n }}
<a
bitLink
class="tw-no-underline"
rel="noreferrer"
target="_blank"
(click)="openURI($event, disablePasswordManagerURI)"
[attr.href]="disablePasswordManagerURI"
>
{{ "turnOffBrowserBuiltInPasswordManagerSettingsLink" | i18n }}
</a>
</bit-hint>
</bit-form-control> </bit-form-control>
<bit-form-control *ngIf="canOverrideBrowserAutofillSetting"> <bit-form-control *ngIf="canOverrideBrowserAutofillSetting">
<input <input