mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
[PM-482] Desktop Application is Minimized When There is a Master Password Reprompt and Copying Vault Item Password (#5635)
This commit is contained in:
@@ -106,9 +106,13 @@ export class ViewComponent extends BaseViewComponent implements OnChanges {
|
||||
this.onViewCipherPasswordHistory.emit(this.cipher);
|
||||
}
|
||||
|
||||
async copy(value: string, typeI18nKey: string, aType: string) {
|
||||
super.copy(value, typeI18nKey, aType);
|
||||
this.messagingService.send("minimizeOnCopy");
|
||||
async copy(value: string, typeI18nKey: string, aType: string): Promise<boolean> {
|
||||
const hasCopied = await super.copy(value, typeI18nKey, aType);
|
||||
if (hasCopied) {
|
||||
this.messagingService.send("minimizeOnCopy");
|
||||
}
|
||||
|
||||
return hasCopied;
|
||||
}
|
||||
|
||||
onWindowHidden() {
|
||||
|
||||
Reference in New Issue
Block a user