fix callback for dropbox
This commit is contained in:
parent
87d6e1f75f
commit
a6b73bde6a
@ -68,9 +68,7 @@ import { applyPresetRulesInplace } from "./presetRules";
|
|||||||
|
|
||||||
import { applyLogWriterInplace, log } from "./moreOnLog";
|
import { applyLogWriterInplace, log } from "./moreOnLog";
|
||||||
import AggregateError from "aggregate-error";
|
import AggregateError from "aggregate-error";
|
||||||
import {
|
import { exportVaultSyncPlansToFiles } from "./debugMode";
|
||||||
exportVaultSyncPlansToFiles,
|
|
||||||
} from "./debugMode";
|
|
||||||
import { SizesConflictModal } from "./syncSizesConflictNotice";
|
import { SizesConflictModal } from "./syncSizesConflictNotice";
|
||||||
import { compareVersion } from "./misc";
|
import { compareVersion } from "./misc";
|
||||||
|
|
||||||
@ -589,7 +587,7 @@ export default class RemotelySavePlugin extends Plugin {
|
|||||||
async (e: any) => {
|
async (e: any) => {
|
||||||
new Notice(t("protocol_dropbox_connect_fail"));
|
new Notice(t("protocol_dropbox_connect_fail"));
|
||||||
new Notice(`${e}`);
|
new Notice(`${e}`);
|
||||||
return;
|
throw e;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -231,7 +231,9 @@ export const sendAuthReq = async (
|
|||||||
return resp2;
|
return resp2;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.error(e);
|
log.error(e);
|
||||||
await errorCallBack(e);
|
if (errorCallBack !== undefined) {
|
||||||
|
await errorCallBack(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -19,9 +19,7 @@ import {
|
|||||||
WebdavAuthType,
|
WebdavAuthType,
|
||||||
WebdavDepthType,
|
WebdavDepthType,
|
||||||
} from "./baseTypes";
|
} from "./baseTypes";
|
||||||
import {
|
import { exportVaultSyncPlansToFiles } from "./debugMode";
|
||||||
exportVaultSyncPlansToFiles,
|
|
||||||
} from "./debugMode";
|
|
||||||
import { exportQrCodeUri } from "./importExport";
|
import { exportQrCodeUri } from "./importExport";
|
||||||
import {
|
import {
|
||||||
clearAllSyncMetaMapping,
|
clearAllSyncMetaMapping,
|
||||||
@ -407,7 +405,12 @@ class DropboxAuthModal extends Modal {
|
|||||||
const authRes = await sendAuthReqDropbox(
|
const authRes = await sendAuthReqDropbox(
|
||||||
this.plugin.settings.dropbox.clientID,
|
this.plugin.settings.dropbox.clientID,
|
||||||
verifier,
|
verifier,
|
||||||
authCode
|
authCode,
|
||||||
|
async (e: any) => {
|
||||||
|
new Notice(t("protocol_dropbox_connect_fail"));
|
||||||
|
new Notice(`${e}`);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
);
|
);
|
||||||
const self = this;
|
const self = this;
|
||||||
setConfigBySuccessfullAuthInplace(
|
setConfigBySuccessfullAuthInplace(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user