mirror of
https://github.com/bitwarden/browser
synced 2025-01-16 20:33:55 +01:00
Simplify and fix file picker logic (#1779)
This commit is contained in:
parent
cb0e1b5872
commit
96df402df7
@ -47,10 +47,7 @@ export class SendAddEditComponent extends BaseAddEditComponent {
|
||||
}
|
||||
|
||||
get showFileSelector(): boolean {
|
||||
return !this.editMode && (!this.isFirefox && !this.isSafari && !this.isLinux && !this.isUnsupportedMac) ||
|
||||
(this.isFirefox && (this.inSidebar || this.inPopout)) ||
|
||||
(this.isSafari && this.inPopout) ||
|
||||
((this.isLinux || this.isUnsupportedMac) && !this.isFirefox && (this.inSidebar || this.inPopout));
|
||||
return !(this.editMode || this.showFilePopoutMessage);
|
||||
}
|
||||
|
||||
get showFilePopoutMessage(): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user