mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
Add minimize when copying to clipboard option (#390)
* Add minimize when copying to clipboard option * Change minimizeOnCopyToClipboardKey constant reference and fix whitespace * Extend feature to context menus and view component * Cleanup and refactor methods * Refactor copy method and add minimizeOnCopyToClipboardKey constant to electronConstants.ts * Use window.main subclass and fix formatting * Revert "Use window.main subclass and fix formatting" This reverts commit 0159613751a54bc886fac0b34bd09d3a26498924. * Reimplement part of 0159613751a54bc886fac0b34bd09d3a26498924 * Add null check to VaultComponent::copyValue * Remove unused import
This commit is contained in:
committed by
GitHub
parent
0faa987f41
commit
a84af15c93
@@ -660,6 +660,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
this.platformUtilsService.copyToClipboard(value);
|
||||
this.toasterService.popAsync('info', null,
|
||||
this.i18nService.t('valueCopied', this.i18nService.t(labelI18nKey)));
|
||||
if (this.viewComponent != null && this.action === 'view') {
|
||||
this.viewComponent.minimizeIfNeeded();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user