mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Drop ko.extenders.limitedList
This commit is contained in:
parent
deeb86bd5f
commit
d1d820da73
8 changed files with 14 additions and 77 deletions
|
|
@ -126,10 +126,7 @@ const
|
|||
}
|
||||
},
|
||||
|
||||
isPlainEditor = () => {
|
||||
let type = SettingsUserStore.editorDefaultType();
|
||||
return EditorDefaultType.Html !== type;
|
||||
},
|
||||
isPlainEditor = () => EditorDefaultType.Plain === SettingsUserStore.editorDefaultType(),
|
||||
|
||||
/**
|
||||
* @param {string} prefix
|
||||
|
|
@ -966,10 +963,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
|||
this.editor(editor => {
|
||||
encrypted || editor.setHtml(sText);
|
||||
|
||||
if (encrypted
|
||||
|| EditorDefaultType.Plain === SettingsUserStore.editorDefaultType()
|
||||
|| !message.isHtml()
|
||||
) {
|
||||
if (encrypted || this.isPlainEditor() || !message.isHtml()) {
|
||||
editor.modePlain();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue