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:
parent
cb0e1b5872
commit
96df402df7
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user