mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Bugfix: conflicting File object with native JS
Cleanup: Stores and tooltips
This commit is contained in:
parent
1df2e00862
commit
db0d03db83
43 changed files with 204 additions and 295 deletions
|
|
@ -30,13 +30,6 @@ class AccountUserStore {
|
|||
this.email(rl.settings.get('Email'));
|
||||
this.parentEmail(rl.settings.get('ParentEmail'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
isRootAccount() {
|
||||
return !this.parentEmail();
|
||||
}
|
||||
}
|
||||
|
||||
export default new AccountUserStore();
|
||||
|
|
|
|||
|
|
@ -1,12 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
class IdentityUserStore {
|
||||
constructor() {
|
||||
this.identities = ko.observableArray();
|
||||
this.identities.loading = ko.observable(false).extend({ debounce: 100 });
|
||||
export const IdentityUserStore = ko.observableArray();
|
||||
|
||||
this.getIDS = () => this.identities.map(item => (item ? item.id() : null)).filter(value => null !== value);
|
||||
}
|
||||
}
|
||||
|
||||
export default new IdentityUserStore();
|
||||
IdentityUserStore.getIDS = () => IdentityUserStore.map(item => (item ? item.id() : null))
|
||||
.filter(value => null !== value);
|
||||
IdentityUserStore.loading = ko.observable(false).extend({ debounce: 100 });
|
||||
|
|
|
|||
|
|
@ -1,12 +1,8 @@
|
|||
import ko from 'ko';
|
||||
|
||||
class SieveUserStore {
|
||||
constructor() {
|
||||
// capabilities
|
||||
this.capa = ko.observableArray();
|
||||
// Sieve scripts SieveScriptModel
|
||||
this.scripts = ko.observableArray();
|
||||
}
|
||||
export const SieveUserStore = {
|
||||
// capabilities
|
||||
capa: ko.observableArray(),
|
||||
// Sieve scripts SieveScriptModel
|
||||
scripts: ko.observableArray()
|
||||
}
|
||||
|
||||
export default new SieveUserStore();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue