@social-mail/social-mail-client 1.8.275 → 1.8.276
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/AdminAppIndex.pack.js +5 -6
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +5 -6
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +5 -6
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +5 -6
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +4 -5
|
@@ -35248,18 +35248,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
35248
35248
|
sendEmail() {
|
|
35249
35249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35250
35250
|
var _a, _b, _c;
|
|
35251
|
-
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
35252
|
-
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
35253
|
-
alert("Cannot send empty email");
|
|
35254
|
-
return;
|
|
35255
|
-
}
|
|
35256
|
-
}
|
|
35257
35251
|
const {
|
|
35258
35252
|
html,
|
|
35259
35253
|
text
|
|
35260
35254
|
} = this.editor.htmlTextContent;
|
|
35261
35255
|
this.draft.htmlBody = html;
|
|
35262
35256
|
this.draft.textBody = text;
|
|
35257
|
+
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
35258
|
+
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
35259
|
+
throw new Error("Cannot send empty email");
|
|
35260
|
+
}
|
|
35261
|
+
}
|
|
35263
35262
|
yield this.save();
|
|
35264
35263
|
const {
|
|
35265
35264
|
prevSave
|