mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Converted *Ajax into *Fetch (because we use the Fetch API, not jQuery.ajax)
This commit is contained in:
parent
bb4d66d6d2
commit
29cf711a6a
52 changed files with 399 additions and 540 deletions
|
|
@ -5,7 +5,7 @@ import { root } from 'Common/Links';
|
|||
|
||||
import AccountStore from 'Stores/User/Account';
|
||||
import IdentityStore from 'Stores/User/Identity';
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { getApp } from 'Helper/Apps/User';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import ko from 'ko';
|
|||
|
||||
import AppStore from 'Stores/User/App';
|
||||
import ContactStore from 'Stores/User/Contact';
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
class ContactsUserSettings {
|
||||
constructor() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { StorageResultType, Notification } from 'Common/Enums';
|
|||
import { getNotification } from 'Common/Translator';
|
||||
|
||||
import FilterStore from 'Stores/User/Filter';
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { FilterModel } from 'Model/Filter';
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ import * as Local from 'Storage/Client';
|
|||
|
||||
import FolderStore from 'Stores/User/Folder';
|
||||
|
||||
import Promises from 'Promises/User/Ajax';
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { getApp } from 'Helper/Apps/User';
|
||||
|
||||
|
|
@ -46,7 +45,7 @@ class FoldersUserSettings {
|
|||
Local.set(ClientSideKeyName.FoldersLashHash, '');
|
||||
|
||||
getApp().foldersPromisesActionHelper(
|
||||
Promises.folderRename(folder.fullNameRaw, nameToEdit, FolderStore.foldersRenaming),
|
||||
Remote.folderRename(folder.fullNameRaw, nameToEdit, FolderStore.foldersRenaming),
|
||||
Notification.CantRenameFolder
|
||||
);
|
||||
|
||||
|
|
@ -109,7 +108,7 @@ class FoldersUserSettings {
|
|||
FolderStore.folderList.remove(fRemoveFolder);
|
||||
|
||||
getApp().foldersPromisesActionHelper(
|
||||
Promises.folderDelete(folderToRemove.fullNameRaw, FolderStore.foldersDeleting),
|
||||
Remote.folderDelete(folderToRemove.fullNameRaw, FolderStore.foldersDeleting),
|
||||
Notification.CantDeleteFolder
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import IdentityStore from 'Stores/User/Identity';
|
|||
import NotificationStore from 'Stores/User/Notification';
|
||||
import MessageStore from 'Stores/User/Message';
|
||||
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
class GeneralUserSettings {
|
||||
constructor() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { delegateRunOnDestroy } from 'Common/Utils';
|
|||
import PgpStore from 'Stores/User/Pgp';
|
||||
import SettingsStore from 'Stores/User/Settings';
|
||||
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { getApp } from 'Helper/Apps/User';
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { showScreenPopup } from 'Knoin/Knoin';
|
|||
|
||||
import SettinsStore from 'Stores/User/Settings';
|
||||
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
class SecurityUserSettings {
|
||||
constructor() {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import ko from 'ko';
|
|||
import { i18n } from 'Common/Translator';
|
||||
|
||||
import TemplateStore from 'Stores/User/Template';
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { getApp } from 'Helper/Apps/User';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { i18n } from 'Common/Translator';
|
|||
|
||||
import ThemeStore from 'Stores/Theme';
|
||||
|
||||
import Remote from 'Remote/User/Ajax';
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
class ThemesUserSettings {
|
||||
constructor() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue