mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Cleanup links
This commit is contained in:
parent
6a92912a3d
commit
32c3f1f059
8 changed files with 25 additions and 133 deletions
|
|
@ -19,7 +19,7 @@ import { delegateRunOnDestroy } from 'Common/UtilsUser';
|
|||
import { encodeHtml, HtmlEditor } from 'Common/Html';
|
||||
|
||||
import { UNUSED_OPTION_VALUE } from 'Common/Consts';
|
||||
import { upload } from 'Common/Links';
|
||||
import { serverRequest } from 'Common/Links';
|
||||
import { i18n, getNotification, getUploadErrorDescByCode } from 'Common/Translator';
|
||||
import { timestampToString } from 'Common/Momentor';
|
||||
import { MessageFlagsCache, setFolderHash } from 'Common/Cache';
|
||||
|
|
@ -1202,7 +1202,7 @@ class ComposePopupView extends AbstractViewPopup {
|
|||
const uploadCache = {},
|
||||
attachmentSizeLimit = pInt(Settings.get('AttachmentLimit')),
|
||||
oJua = new Jua({
|
||||
action: upload(),
|
||||
action: serverRequest('Upload'),
|
||||
name: 'uploader',
|
||||
queueSize: 2,
|
||||
multipleSizeLimit: 50,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import { pInt } from 'Common/Utils';
|
|||
import { delegateRunOnDestroy, computedPaginatorHelper } from 'Common/UtilsUser';
|
||||
|
||||
import { Selector } from 'Common/Selector';
|
||||
import { exportContactsVcf, exportContactsCsv, uploadContacts } from 'Common/Links';
|
||||
import { serverRequestRaw, serverRequest } from 'Common/Links';
|
||||
import { i18n, getNotification } from 'Common/Translator';
|
||||
|
||||
import SettingsStore from 'Stores/User/Settings';
|
||||
|
|
@ -352,17 +352,17 @@ class ContactsPopupView extends AbstractViewPopup {
|
|||
}
|
||||
|
||||
exportVcf() {
|
||||
rl.app.download(exportContactsVcf());
|
||||
rl.app.download(serverRequestRaw('ContactsVcf'));
|
||||
}
|
||||
|
||||
exportCsv() {
|
||||
rl.app.download(exportContactsCsv());
|
||||
rl.app.download(serverRequestRaw('ContactsCsv'));
|
||||
}
|
||||
|
||||
initUploader() {
|
||||
if (this.importUploaderButton()) {
|
||||
const j = new Jua({
|
||||
action: uploadContacts(),
|
||||
action: serverRequest('UploadContacts'),
|
||||
name: 'uploader',
|
||||
queueSize: 1,
|
||||
multipleSizeLimit: 1,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { doc, leftPanelDisabled, moveAction, Settings } from 'Common/Globals';
|
|||
import { computedPaginatorHelper } from 'Common/UtilsUser';
|
||||
import { File } from 'Common/File';
|
||||
|
||||
import { mailBox, append } from 'Common/Links';
|
||||
import { mailBox, serverRequest } from 'Common/Links';
|
||||
import { Selector } from 'Common/Selector';
|
||||
|
||||
import { i18n, initOnStartOrLangChange } from 'Common/Translator';
|
||||
|
|
@ -907,7 +907,7 @@ class MessageListMailBoxUserView extends AbstractViewRight {
|
|||
}
|
||||
|
||||
const oJua = new Jua({
|
||||
action: append(),
|
||||
action: serverRequest('Append'),
|
||||
name: 'AppendFile',
|
||||
queueSize: 1,
|
||||
multipleSizeLimit: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue