(js) Fix mail draft autosave in preferences

Fixes #3519
pull/189/merge
Francis Lachapelle 2016-02-11 11:40:36 -05:00
parent d7b010526b
commit c8ea2000d8
3 changed files with 6 additions and 1 deletions

1
NEWS
View File

@ -23,6 +23,7 @@ Bug fixes
- [web] really delete mailboxes being deleted from the Trash folder (#595, #1189, #641) - [web] really delete mailboxes being deleted from the Trash folder (#595, #1189, #641)
- [web] fixed address autocompletion of mail editor affecting cards list of active addressbook - [web] fixed address autocompletion of mail editor affecting cards list of active addressbook
- [web] fixed batched delete of components (#3516) - [web] fixed batched delete of components (#3516)
- [web] fixed mail draft autosave in preferences (#3519)
3.0.1 (2016-02-05) 3.0.1 (2016-02-05)
------------------ ------------------

View File

@ -594,7 +594,8 @@
<div layout="row" layout-align="start center"> <div layout="row" layout-align="start center">
<p><var:string label:value="Auto save every"/></p> <p><var:string label:value="Auto save every"/></p>
<md-input-container class="md-input-number" md-no-float="md-no-float"> <md-input-container class="md-input-number" md-no-float="md-no-float">
<input type="number" min="0" label:aria-label="minutes" ng-model="preferences.defaults.SOGoMailAutoSave"/> <input type="number" min="0" label:aria-label="minutes"
ng-model="app.preferences.defaults.SOGoMailAutoSave"/>
</md-input-container> </md-input-container>
<var:string label:value="minutes"/> <var:string label:value="minutes"/>
</div> </div>

View File

@ -23,6 +23,9 @@
data.SOGoMailLabelsColors = labels; data.SOGoMailLabelsColors = labels;
// Mail editor autosave is a number of minutes or 0 if disabled
data.SOGoMailAutoSave = parseInt(data.SOGoMailAutoSave) || 0;
// We convert our list of autoReplyEmailAddresses/forwardAddress into a string. // We convert our list of autoReplyEmailAddresses/forwardAddress into a string.
// We also convert our date objects into real date, otherwise we'll have strings // We also convert our date objects into real date, otherwise we'll have strings
// or undefined values and the md-datepicker does NOT like this. // or undefined values and the md-datepicker does NOT like this.