mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Added auto logout option
This commit is contained in:
parent
76f319a07f
commit
bb551e4ec8
18 changed files with 171 additions and 33 deletions
|
|
@ -1321,7 +1321,7 @@
|
|||
return false;
|
||||
});
|
||||
|
||||
if (!!Settings.settingsGet('AllowСtrlEnterOnCompose'))
|
||||
if (!!Settings.settingsGet('AllowCtrlEnterOnCompose'))
|
||||
{
|
||||
key('ctrl+enter, command+enter', Enums.KeyState.Compose, function () {
|
||||
self.sendCommand();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
AccountStore = require('Stores/User/Account'),
|
||||
|
||||
Settings = require('Storage/Settings'),
|
||||
Remote = require('Storage/User/Remote'),
|
||||
|
||||
AbstractView = require('Knoin/AbstractView')
|
||||
;
|
||||
|
|
@ -80,10 +79,7 @@
|
|||
|
||||
AbstractSystemDropDownUserView.prototype.logoutClick = function ()
|
||||
{
|
||||
Remote.logout(function () {
|
||||
require('App/User').loginAndLogoutReload(true,
|
||||
Settings.settingsGet('ParentEmail') && 0 < Settings.settingsGet('ParentEmail').length);
|
||||
});
|
||||
require('App/User').logout();
|
||||
};
|
||||
|
||||
AbstractSystemDropDownUserView.prototype.onBuild = function ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue