Make MessageList per day optional #737

This commit is contained in:
the-djmaze 2022-12-23 08:42:36 +01:00
parent 81e46ccdf7
commit fca7e44aa0
46 changed files with 114 additions and 40 deletions

View file

@ -44,7 +44,7 @@ export class UserSettingsGeneral extends AbstractViewSettings {
['layout', 'messageReadDelay', 'messagesPerPage',
'editorDefaultType', 'requestReadReceipt', 'requestDsn', 'pgpSign', 'pgpEncrypt',
'viewHTML', 'showImages', 'removeColors', 'hideDeleted', 'listInlineAttachments', 'simpleAttachmentsList',
'useCheckboxesInList', 'useThreads', 'replySameFolder', 'msgDefaultAction', 'allowSpellcheck'
'useCheckboxesInList', 'listPerDay', 'useThreads', 'replySameFolder', 'msgDefaultAction', 'allowSpellcheck'
].forEach(name => this[name] = SettingsUserStore[name]);
this.allowLanguagesOnSettings = !!SettingsGet('AllowLanguagesOnSettings');
@ -99,7 +99,7 @@ export class UserSettingsGeneral extends AbstractViewSettings {
this.addSetting('Layout');
this.addSettings(['ViewHTML', 'ShowImages', 'HideDeleted', 'ListInlineAttachments', 'simpleAttachmentsList',
'UseCheckboxesInList', 'ReplySameFolder',
'UseCheckboxesInList', 'listPerDay', 'ReplySameFolder',
'requestReadReceipt', 'requestDsn', 'pgpSign', 'pgpEncrypt', 'allowSpellcheck',
'DesktopNotifications', 'SoundNotification']);

View file

@ -21,6 +21,7 @@ export const SettingsUserStore = new class {
listInlineAttachments: 0,
simpleAttachmentsList: 0,
useCheckboxesInList: 1,
listPerDay: 1,
allowDraftAutosave: 1,
useThreads: 0,
replySameFolder: 0,
@ -84,6 +85,7 @@ export const SettingsUserStore = new class {
self.listInlineAttachments(SettingsGet('ListInlineAttachments'));
self.simpleAttachmentsList(SettingsGet('simpleAttachmentsList'));
self.useCheckboxesInList(SettingsGet('UseCheckboxesInList'));
self.listPerDay(SettingsGet('listPerDay'));
self.allowDraftAutosave(SettingsGet('AllowDraftAutosave'));
self.useThreads(SettingsGet('UseThreads'));
self.replySameFolder(SettingsGet('ReplySameFolder'));

View file

@ -33,6 +33,7 @@ html.rl-no-preview-pane {
background:rgba(128,128,128,0.2);
font-size: 12px;
line-height: 2;
opacity: 0.6;
text-align: center;
text-transform: capitalize;
}

View file

@ -94,6 +94,7 @@ export class MailMessageList extends AbstractViewRight {
this.popupVisibility = arePopupsVisible;
this.useCheckboxesInList = SettingsUserStore.useCheckboxesInList;
this.listPerDay = SettingsUserStore.listPerDay;
this.userUsageProc = FolderUserStore.quotaPercentage;