@sprucelabs/spruce-calendar-components 18.0.2 → 19.0.2
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.
|
@@ -116,7 +116,7 @@ export default class CalendarViewController extends CoreCalendarViewController {
|
|
|
116
116
|
this.addEvent(event);
|
|
117
117
|
this.selectEvent(event.id);
|
|
118
118
|
const draftAddedPromise = this.draftAddedHandler(event);
|
|
119
|
-
yield this.persist(event
|
|
119
|
+
yield this.persist(event);
|
|
120
120
|
yield draftAddedPromise;
|
|
121
121
|
});
|
|
122
122
|
}
|
|
@@ -64,6 +64,7 @@ export default class EventTitleToolViewController extends AbstractViewController
|
|
|
64
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
const { event } = this.getContext();
|
|
66
66
|
event.timeBlocks[0] = Object.assign(Object.assign({}, event.timeBlocks[0]), this.formVc.getValues());
|
|
67
|
+
console.log('handling-form-change');
|
|
67
68
|
return this.updateContextHandler({
|
|
68
69
|
event: Object.assign({}, event),
|
|
69
70
|
});
|
|
@@ -71,6 +72,7 @@ export default class EventTitleToolViewController extends AbstractViewController
|
|
|
71
72
|
}
|
|
72
73
|
handleUpdateContext(context) {
|
|
73
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
console.log('handling-update-context');
|
|
74
76
|
yield this.formVc.setValues({
|
|
75
77
|
title: context.event.timeBlocks[0].title,
|
|
76
78
|
subtitle: context.event.timeBlocks[0].subtitle,
|
|
@@ -105,7 +105,7 @@ class CalendarViewController extends heartwood_view_controllers_1.CalendarViewCo
|
|
|
105
105
|
this.addEvent(event);
|
|
106
106
|
this.selectEvent(event.id);
|
|
107
107
|
const draftAddedPromise = this.draftAddedHandler(event);
|
|
108
|
-
await this.persist(event
|
|
108
|
+
await this.persist(event);
|
|
109
109
|
await draftAddedPromise;
|
|
110
110
|
}
|
|
111
111
|
getIsSwappingEvent() {
|
|
@@ -56,11 +56,13 @@ class EventTitleToolViewController extends heartwood_view_controllers_1.Abstract
|
|
|
56
56
|
async handleChangeForm() {
|
|
57
57
|
const { event } = this.getContext();
|
|
58
58
|
event.timeBlocks[0] = Object.assign(Object.assign({}, event.timeBlocks[0]), this.formVc.getValues());
|
|
59
|
+
console.log('handling-form-change');
|
|
59
60
|
return this.updateContextHandler({
|
|
60
61
|
event: Object.assign({}, event),
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
64
|
async handleUpdateContext(context) {
|
|
65
|
+
console.log('handling-update-context');
|
|
64
66
|
await this.formVc.setValues({
|
|
65
67
|
title: context.event.timeBlocks[0].title,
|
|
66
68
|
subtitle: context.event.timeBlocks[0].subtitle,
|