mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
prettier --write
This commit is contained in:
parent
450528ff00
commit
8a0be3212d
164 changed files with 7053 additions and 9008 deletions
|
|
@ -1,11 +1,9 @@
|
|||
|
||||
import ko from 'ko';
|
||||
import _ from '_';
|
||||
import {Magics} from 'Common/Enums';
|
||||
import { Magics } from 'Common/Enums';
|
||||
import * as Settings from 'Storage/Settings';
|
||||
|
||||
class AccountUserStore
|
||||
{
|
||||
class AccountUserStore {
|
||||
constructor() {
|
||||
this.email = ko.observable('');
|
||||
this.parentEmail = ko.observable('');
|
||||
|
|
@ -13,14 +11,13 @@ class AccountUserStore
|
|||
this.signature = ko.observable('');
|
||||
|
||||
this.accounts = ko.observableArray([]);
|
||||
this.accounts.loading = ko.observable(false).extend({throttle: Magics.Time100ms});
|
||||
this.accounts.loading = ko.observable(false).extend({ throttle: Magics.Time100ms });
|
||||
|
||||
this.computers();
|
||||
}
|
||||
|
||||
computers() {
|
||||
this.accountsEmails = ko.computed(
|
||||
() => _.compact(_.map(this.accounts(), (item) => (item ? item.email : null))));
|
||||
this.accountsEmails = ko.computed(() => _.compact(_.map(this.accounts(), (item) => (item ? item.email : null))));
|
||||
|
||||
this.accountsUnreadCount = ko.computed(() => 0);
|
||||
// this.accountsUnreadCount = ko.computed(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue