@social-mail/social-mail-client 1.9.83 → 1.9.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.9.83",
3
+ "version": "1.9.85",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,7 +41,7 @@ export default class EditLedgerPage extends PopupWindowPage<IStoreAccount> {
41
41
 
42
42
  }
43
43
 
44
- @Action({ onEvent: "saveForm"})
44
+ @Action({ onEvent: "saveForm", close: true})
45
45
  async saveForm() {
46
46
  await this.entityService.save(this.model);
47
47
  return this.model;
@@ -20,6 +20,7 @@ import DateField from "@web-atoms/web-controls/dist/basic/DateField";
20
20
  import DateTime from "@web-atoms/date-time/dist/DateTime";
21
21
  import EntityService from "../../../../services/EntityService";
22
22
  import EditLedgerPage from "../ledger/EditLedgerPage";
23
+ import { StoreEvents } from "../../../../common/events/StoreEvents";
23
24
 
24
25
  export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
25
26
 
@@ -203,6 +204,7 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
203
204
  this.model.posted = true;
204
205
  await this.storeOrderService.save(this.model);
205
206
  this.parameters = this.model;
207
+ StoreEvents.onJournalPosted.dispatchEvent(this.model);
206
208
  await this.init();
207
209
  }
208
210
 
@@ -211,6 +213,7 @@ export default class EditOrderPage extends ContentPage<Partial<IStoreJournal>> {
211
213
  async onSaveOrder() {
212
214
  await this.storeOrderService.save(this.model);
213
215
  this.parameters = this.model;
216
+ StoreEvents.onJournalSaved.dispatchEvent(this.model);
214
217
  await this.init();
215
218
  }
216
219