mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
disable copy/generate buttons when sends are disabled (#11421)
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
bitIconButton="bwi-generate"
|
bitIconButton="bwi-generate"
|
||||||
bitSuffix
|
bitSuffix
|
||||||
[appA11yTitle]="'generatePassword' | i18n"
|
[appA11yTitle]="'generatePassword' | i18n"
|
||||||
|
[disabled]="!config.areSendsAllowed"
|
||||||
(click)="generatePassword()"
|
(click)="generatePassword()"
|
||||||
data-testid="generate-password"
|
data-testid="generate-password"
|
||||||
></button>
|
></button>
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
bitIconButton="bwi-clone"
|
bitIconButton="bwi-clone"
|
||||||
bitSuffix
|
bitSuffix
|
||||||
[appA11yTitle]="'copyPassword' | i18n"
|
[appA11yTitle]="'copyPassword' | i18n"
|
||||||
[disabled]="!sendOptionsForm.get('password').value"
|
[disabled]="!config.areSendsAllowed || !sendOptionsForm.get('password').value"
|
||||||
[valueLabel]="'password' | i18n"
|
[valueLabel]="'password' | i18n"
|
||||||
[appCopyClick]="sendOptionsForm.get('password').value"
|
[appCopyClick]="sendOptionsForm.get('password').value"
|
||||||
showToast
|
showToast
|
||||||
|
|||||||
Reference in New Issue
Block a user