Split Common/Utils.js

Because admin app doesn't need most of them
This commit is contained in:
djmaze 2020-10-14 19:16:37 +02:00
parent 167e323c72
commit 1d6a636433
25 changed files with 592 additions and 620 deletions

View file

@ -1,6 +1,6 @@
import ko from 'ko';
import { settingsSaveHelperSimpleFunction, defautOptionsAfterRender } from 'Common/Utils';
import { settingsSaveHelperSimpleFunction, defaultOptionsAfterRender } from 'Common/Utils';
import { SaveSettingsStep, StorageResultType } from 'Common/Enums';
import Remote from 'Remote/Admin/Fetch';
@ -10,7 +10,7 @@ const settingsGet = rl.settings.get;
class ContactsAdminSettings {
constructor() {
this.defautOptionsAfterRender = defautOptionsAfterRender;
this.defaultOptionsAfterRender = defaultOptionsAfterRender;
this.enableContacts = ko.observable(!!settingsGet('ContactsEnable'));
this.contactsSync = ko.observable(!!settingsGet('ContactsSync'));

View file

@ -1,6 +1,6 @@
import ko from 'ko';
import { delegateRunOnDestroy } from 'Common/Utils';
import { delegateRunOnDestroy } from 'Common/UtilsUser';
import { StorageResultType, Notification } from 'Common/Enums';
import { getNotification } from 'Common/Translator';

View file

@ -1,6 +1,6 @@
import ko from 'ko';
import { delegateRunOnDestroy } from 'Common/Utils';
import { delegateRunOnDestroy } from 'Common/UtilsUser';
import PgpStore from 'Stores/User/Pgp';
import SettingsStore from 'Stores/User/Settings';