mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Bugfix boostrap alerts.less was accidentally removed
Bugfix Date.fromNow('past'/'future') reversed
Replace Events[pub/sub]('interval.*') with setInterval()
Events[pub/sub] to native
Cleanup knockout extensions
Replaced momentToNode with proper HTML5 <time>
Cleanup Momentor
This commit is contained in:
parent
6541a1de7c
commit
9f1ea1a0fd
44 changed files with 539 additions and 1126 deletions
|
|
@ -4,7 +4,6 @@ import { FolderType } from 'Common/Enums';
|
|||
import { isPosNumeric } from 'Common/Utils';
|
||||
import { i18n, trigger as translatorTrigger } from 'Common/Translator';
|
||||
import { getFolderInboxName } from 'Common/Cache';
|
||||
import * as Events from 'Common/Events';
|
||||
|
||||
import { AbstractModel } from 'Knoin/AbstractModel';
|
||||
|
||||
|
|
@ -234,19 +233,13 @@ class FolderModel extends AbstractModel {
|
|||
);
|
||||
|
||||
// subscribe
|
||||
this.name.subscribe((value) => {
|
||||
this.nameForEdit(value);
|
||||
});
|
||||
this.name.subscribe(value => this.nameForEdit(value));
|
||||
|
||||
this.edited.subscribe((value) => {
|
||||
if (value) {
|
||||
this.nameForEdit(this.name());
|
||||
}
|
||||
});
|
||||
this.edited.subscribe(value => value && this.nameForEdit(this.name()));
|
||||
|
||||
this.messageCountUnread.subscribe((unread) => {
|
||||
if (FolderType.Inbox === this.type()) {
|
||||
Events.pub('mailbox.inbox-unread-count', [unread]);
|
||||
dispatchEvent(new CustomEvent('mailbox.inbox-unread-count', {detail:unread}));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue