mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Add "Automatically save draft" option
This commit is contained in:
parent
8da988fef2
commit
45fe0217f2
7 changed files with 40 additions and 6 deletions
|
|
@ -314,8 +314,8 @@ class ComposePopupView extends AbstractViewNext
|
|||
this.saveMessageResponse = _.bind(this.saveMessageResponse, this);
|
||||
|
||||
Events.sub('interval.2m', () => {
|
||||
if (this.modalVisibility() && !FolderStore.draftFolderNotEnabled() && !this.isEmptyForm(false) &&
|
||||
!this.saving() && !this.sending() && !this.savedError())
|
||||
if (this.modalVisibility() && !FolderStore.draftFolderNotEnabled() && SettingsStore.allowDraftAutosave() &&
|
||||
!this.isEmptyForm(false) && !this.saving() && !this.sending() && !this.savedError())
|
||||
{
|
||||
this.saveCommand();
|
||||
}
|
||||
|
|
@ -519,7 +519,7 @@ class ComposePopupView extends AbstractViewNext
|
|||
this.bSkipNextHide = true;
|
||||
|
||||
if (this.modalVisibility() && !this.saving() && !this.sending() &&
|
||||
!FolderStore.draftFolderNotEnabled())
|
||||
!FolderStore.draftFolderNotEnabled() && SettingsStore.allowDraftAutosave())
|
||||
{
|
||||
this.saveCommand();
|
||||
}
|
||||
|
|
@ -563,8 +563,8 @@ class ComposePopupView extends AbstractViewNext
|
|||
}
|
||||
|
||||
autosaveFunction() {
|
||||
if (this.modalVisibility() && !FolderStore.draftFolderNotEnabled() && !this.isEmptyForm(false) &&
|
||||
!this.saving() && !this.sending() && !this.savedError())
|
||||
if (this.modalVisibility() && !FolderStore.draftFolderNotEnabled() && SettingsStore.allowDraftAutosave() &&
|
||||
!this.isEmptyForm(false) && !this.saving() && !this.sending() && !this.savedError())
|
||||
{
|
||||
this.saveCommand();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue