mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Improved mailbox handling of empty message subject and messagelist folder detection
This commit is contained in:
parent
9559986499
commit
eb0cd796b0
8 changed files with 56 additions and 73 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { Layout, ClientSideKeyNameMessageListSize } from 'Common/EnumsUser';
|
||||
import { doc, leftPanelDisabled, moveAction, Settings, elementById } from 'Common/Globals';
|
||||
import { doc, createElement, leftPanelDisabled, moveAction, Settings, elementById } from 'Common/Globals';
|
||||
import { pString, pInt } from 'Common/Utils';
|
||||
import { setLayoutResizer } from 'Common/UtilsUser';
|
||||
import { getFolderFromCacheList, getFolderFullName, getFolderInboxName } from 'Common/Cache';
|
||||
import { i18n } from 'Common/Translator';
|
||||
import { i18n, initOnStartOrLangChange } from 'Common/Translator';
|
||||
import { SettingsUserStore } from 'Stores/User/Settings';
|
||||
|
||||
import { AppUserStore } from 'Stores/User/App';
|
||||
|
|
@ -22,6 +22,12 @@ import { AbstractScreen } from 'Knoin/AbstractScreen';
|
|||
|
||||
export class MailBoxUserScreen extends AbstractScreen {
|
||||
constructor() {
|
||||
var styleSheet = createElement('style');
|
||||
doc.head.appendChild(styleSheet);
|
||||
initOnStartOrLangChange(() =>
|
||||
styleSheet.innerText = '.subjectParent:empty::after,.subjectParent .subject:empty::after'
|
||||
+'{content:"'+i18n('MESSAGE/EMPTY_SUBJECT_TEXT')+'"}'
|
||||
);
|
||||
super('mailbox', [
|
||||
SystemDropDownUserView,
|
||||
MailFolderList,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue