Update MessageView.js

This commit is contained in:
Ronak Patel 2024-03-12 07:38:49 -07:00 committed by GitHub
parent 5e115982eb
commit f807bcdcef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,6 @@ import { ScopeFolderList, ScopeMessageList, ScopeMessageView } from 'Common/Enum
import { import {
ComposeType, ComposeType,
ClientSideKeyNameMessageHeaderFullInfo, ClientSideKeyNameMessageHeaderFullInfo,
ClientSideKeyNameMessageAttachmentControls,
FolderType, FolderType,
MessageSetAction MessageSetAction
} from 'Common/EnumsUser'; } from 'Common/EnumsUser';
@ -105,7 +104,7 @@ export class MailMessageView extends AbstractViewRight {
this.simpleAttachmentsList = SettingsUserStore.simpleAttachmentsList; this.simpleAttachmentsList = SettingsUserStore.simpleAttachmentsList;
addObservablesTo(this, { addObservablesTo(this, {
showAttachmentControls: !!Local.get(ClientSideKeyNameMessageAttachmentControls), showAttachmentControls: true,
downloadAsZipLoading: false, downloadAsZipLoading: false,
showFullInfo: '1' === Local.get(ClientSideKeyNameMessageHeaderFullInfo), showFullInfo: '1' === Local.get(ClientSideKeyNameMessageHeaderFullInfo),
// bootstrap dropdown // bootstrap dropdown
@ -482,7 +481,6 @@ export class MailMessageView extends AbstractViewRight {
toggleAttachmentControls() { toggleAttachmentControls() {
const b = !this.showAttachmentControls(); const b = !this.showAttachmentControls();
this.showAttachmentControls(b); this.showAttachmentControls(b);
Local.set(ClientSideKeyNameMessageAttachmentControls, b);
} }
downloadAsZip() { downloadAsZip() {