mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Cleanup some code
This commit is contained in:
parent
ddb6daace6
commit
3ad9bb6258
3 changed files with 7 additions and 9 deletions
|
|
@ -78,7 +78,6 @@
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
color: var(--folders-disabled-color, #666);
|
color: var(--folders-disabled-color, #666);
|
||||||
cursor: default;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border-left: 3px solid transparent;
|
border-left: 3px solid transparent;
|
||||||
|
|
||||||
|
|
@ -89,7 +88,6 @@
|
||||||
&.selectable {
|
&.selectable {
|
||||||
|
|
||||||
color: var(--folders-color, #333);
|
color: var(--folders-color, #333);
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: var(--folders-hover-bg-color, #333);
|
background-color: var(--folders-hover-bg-color, #333);
|
||||||
|
|
@ -116,6 +114,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:not(.selectable) {
|
&:not(.selectable) {
|
||||||
|
cursor: default;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,9 +86,10 @@ export class FolderListMailBoxUserView extends AbstractViewLeft {
|
||||||
setFolderHash(folder.fullNameRaw, '');
|
setFolderHash(folder.fullNameRaw, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
rl.route.setHash((event.target.matches('.flag-icon') && !folder.isFlagged())
|
rl.route.setHash(
|
||||||
? mailBox(folder.fullNameHash, 1, 'is:flagged')
|
mailBox(folder.fullNameHash, 1,
|
||||||
: mailBox(folder.fullNameHash)
|
(event.target.matches('.flag-icon') && !folder.isFlagged()) ? 'is:flagged' : ''
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -607,16 +607,14 @@ class MessageViewMailBoxUserView extends AbstractViewRight {
|
||||||
.filter(v => v);
|
.filter(v => v);
|
||||||
if (hashes.length) {
|
if (hashes.length) {
|
||||||
Remote.attachmentsActions('Zip', hashes, this.downloadAsZipLoading)
|
Remote.attachmentsActions('Zip', hashes, this.downloadAsZipLoading)
|
||||||
.then((result) => {
|
.then(result => {
|
||||||
if (result && result.Result && result.Result.FileHash) {
|
if (result && result.Result && result.Result.FileHash) {
|
||||||
rl.app.download(attachmentDownload(result.Result.FileHash));
|
rl.app.download(attachmentDownload(result.Result.FileHash));
|
||||||
} else {
|
} else {
|
||||||
this.downloadAsZipError(true);
|
this.downloadAsZipError(true);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => this.downloadAsZipError(true));
|
||||||
this.downloadAsZipError(true);
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.highlightUnselectedAttachments(true);
|
this.highlightUnselectedAttachments(true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue