1
0
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:
Elias Papavasileiou
2020-04-14 23:11:41 +03:00
committed by GitHub
parent 0faa987f41
commit a84af15c93
6 changed files with 51 additions and 1 deletions

View File

@@ -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();
}
});
}