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
1 changed files with 1 additions and 4 deletions

View File

@ -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 {