1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

Simplify and fix file picker logic (#1779)

This commit is contained in:
Matt Gibson 2021-04-12 10:13:53 -05:00 committed by GitHub
parent cb0e1b5872
commit 96df402df7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,10 +47,7 @@ export class SendAddEditComponent extends BaseAddEditComponent {
} }
get showFileSelector(): boolean { get showFileSelector(): boolean {
return !this.editMode && (!this.isFirefox && !this.isSafari && !this.isLinux && !this.isUnsupportedMac) || return !(this.editMode || this.showFilePopoutMessage);
(this.isFirefox && (this.inSidebar || this.inPopout)) ||
(this.isSafari && this.inPopout) ||
((this.isLinux || this.isUnsupportedMac) && !this.isFirefox && (this.inSidebar || this.inPopout));
} }
get showFilePopoutMessage(): boolean { get showFilePopoutMessage(): boolean {