@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
|
@@ -35590,18 +35590,17 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
35590
35590
|
sendEmail() {
|
|
35591
35591
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35592
35592
|
var _a, _b, _c;
|
|
35593
|
-
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
35594
|
-
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
35595
|
-
alert("Cannot send empty email");
|
|
35596
|
-
return;
|
|
35597
|
-
}
|
|
35598
|
-
}
|
|
35599
35593
|
const {
|
|
35600
35594
|
html,
|
|
35601
35595
|
text
|
|
35602
35596
|
} = this.editor.htmlTextContent;
|
|
35603
35597
|
this.draft.htmlBody = html;
|
|
35604
35598
|
this.draft.textBody = text;
|
|
35599
|
+
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
35600
|
+
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
35601
|
+
throw new Error("Cannot send empty email");
|
|
35602
|
+
}
|
|
35603
|
+
}
|
|
35605
35604
|
yield this.save();
|
|
35606
35605
|
const {
|
|
35607
35606
|
prevSave
|