This commit is contained in:
the-djmaze 2022-10-12 23:08:28 +02:00
parent 063ed7d844
commit dc241ded1b
12 changed files with 18 additions and 16 deletions

View file

@ -4,7 +4,7 @@ import { koComputable } from 'External/ko';
import { Layout } from 'Common/EnumsUser';
import { pInt } from 'Common/Utils';
import { addObservablesTo } from 'External/ko';
import { $htmlCL, SettingsGet, fireEvent } from 'Common/Globals';
import { $htmlCL, SettingsGet, SettingsCapa, fireEvent } from 'Common/Globals';
import { ThemeStore } from 'Stores/Theme';
export const SettingsUserStore = new class {
@ -57,7 +57,7 @@ export const SettingsUserStore = new class {
let iAutoLogoutTimer;
self.delayLogout = (() => {
clearTimeout(iAutoLogoutTimer);
if (0 < self.autoLogout() && !SettingsGet('AccountSignMe')) {
if (0 < self.autoLogout() && !SettingsGet('AccountSignMe') && SettingsCapa('AutoLogout')) {
iAutoLogoutTimer = setTimeout(
rl.app.logout,
self.autoLogout() * 60000

View file

@ -345,6 +345,9 @@ html.rl-no-preview-pane {
background: #e8e8e8;
border-bottom: 1px solid #ddd;
}
.attachmentsControls > * {
margin-right: 0.5em
}
.sm-bq-switcher > summary {
border: 1px solid #999;

View file

@ -460,7 +460,7 @@ export class MailMessageView extends AbstractViewRight {
}
downloadAsZip() {
const hashes = (currentMessage() ? currentMessage().attachments : [])
const hashes = (currentMessage()?.attachments || [])
.map(item => item?.checked() /*&& !item?.isLinked()*/ ? item.download : '')
.filter(v => v);
if (hashes.length) {