[fix] dsh-mail-sender is waiting for activation
This commit is contained in:
5 files changed
+37
-21
No files matched your search
+7
-7
@@ -19984,13 +19984,13 @@ var remote_default = TYPERT_REMOTE;
|
||||
|
||||
// src/client/api.ts
|
||||
function createApi(ctx) {
|
||||
const remote = ctx.remote["mail-gateway"];
|
||||
const methods = remote_default.methods;
|
||||
return {
|
||||
get: () => remote.get(),
|
||||
saveMailbox: (patch) => remote.saveMailbox(patch),
|
||||
saveWhitelist: (addresses) => remote.saveWhitelist(addresses),
|
||||
testConnection: (patch) => remote.testConnection(patch),
|
||||
status: () => remote.status()
|
||||
get: () => methods["mail-gateway/get"].invoke(ctx.remote, {}),
|
||||
saveMailbox: (patch) => methods["mail-gateway/saveMailbox"].invoke(ctx.remote, { patch }),
|
||||
saveWhitelist: (addresses) => methods["mail-gateway/saveWhitelist"].invoke(ctx.remote, { addresses }),
|
||||
testConnection: (patch) => methods["mail-gateway/testConnection"].invoke(ctx.remote, { patch }),
|
||||
status: () => methods["mail-gateway/status"].invoke(ctx.remote, {})
|
||||
};
|
||||
}
|
||||
|
||||
@@ -20284,7 +20284,7 @@ function MailGatewaySection({ api }) {
|
||||
|
||||
// src/client/index.ts
|
||||
var name = "dsh-mail-sender";
|
||||
var inject = ["slots", "remote", "remote.mail-gateway"];
|
||||
var inject = ["slots", "remote"];
|
||||
async function apply(ctx) {
|
||||
const disposeRemote = await ctx.remote.$mount(remote_default);
|
||||
const api = createApi(ctx);
|
||||
|
||||
Reference in new issue
Block a user