mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +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
|
|
@ -1,24 +1,8 @@
|
|||
import ko from 'ko';
|
||||
import { Capa } from 'Common/Enums';
|
||||
|
||||
class CapaAdminStore {
|
||||
constructor() {
|
||||
ko.addObservablesTo(this, {
|
||||
additionalAccounts: false,
|
||||
identities: false,
|
||||
attachmentThumbnails: false,
|
||||
sieve: false,
|
||||
filters: false,
|
||||
themes: true,
|
||||
userBackground: false,
|
||||
openPGP: false,
|
||||
twoFactorAuth: false,
|
||||
twoFactorAuthForce: false,
|
||||
templates: false
|
||||
});
|
||||
}
|
||||
|
||||
populate() {
|
||||
export const CapaAdminStore = {
|
||||
populate: function() {
|
||||
let capa = rl.settings.capa;
|
||||
this.additionalAccounts(capa(Capa.AdditionalAccounts));
|
||||
this.identities(capa(Capa.Identities));
|
||||
|
|
@ -32,6 +16,18 @@ class CapaAdminStore {
|
|||
this.twoFactorAuthForce(capa(Capa.TwoFactorForce));
|
||||
this.templates(capa(Capa.Templates));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default new CapaAdminStore();
|
||||
ko.addObservablesTo(CapaAdminStore, {
|
||||
additionalAccounts: false,
|
||||
identities: false,
|
||||
attachmentThumbnails: false,
|
||||
sieve: false,
|
||||
filters: false,
|
||||
themes: true,
|
||||
userBackground: false,
|
||||
openPGP: false,
|
||||
twoFactorAuth: false,
|
||||
twoFactorAuthForce: false,
|
||||
templates: false
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue