@sprucelabs/spruce-calendar-components 20.5.6 → 20.5.9
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.
|
@@ -153,6 +153,7 @@ export default class RemoteEventStore {
|
|
|
153
153
|
return target;
|
|
154
154
|
}
|
|
155
155
|
cleanPayload(payload) {
|
|
156
|
+
const { dateToUpdate, shouldUpdateAllEventsGoingForward } = payload;
|
|
156
157
|
const normalized = normalizeSchemaValues(calendarEventSchema, payload, {
|
|
157
158
|
shouldValidate: false,
|
|
158
159
|
});
|
|
@@ -171,6 +172,15 @@ export default class RemoteEventStore {
|
|
|
171
172
|
//@ts-ignore
|
|
172
173
|
delete normalized[key];
|
|
173
174
|
}
|
|
175
|
+
if (shouldUpdateAllEventsGoingForward) {
|
|
176
|
+
;
|
|
177
|
+
normalized.shouldUpdateAllEventsGoingForward =
|
|
178
|
+
shouldUpdateAllEventsGoingForward;
|
|
179
|
+
}
|
|
180
|
+
if (dateToUpdate) {
|
|
181
|
+
;
|
|
182
|
+
normalized.dateToUpdate = dateToUpdate;
|
|
183
|
+
}
|
|
174
184
|
return normalized;
|
|
175
185
|
}
|
|
176
186
|
setCalendarId(id) {
|
|
@@ -48,14 +48,14 @@ export default class EventDateTimeToolViewController extends AbstractViewControl
|
|
|
48
48
|
buttons: [
|
|
49
49
|
{
|
|
50
50
|
id: 'move',
|
|
51
|
-
label: `
|
|
51
|
+
label: `Reschedule this event to ${formattedDestination}.`,
|
|
52
52
|
onClick: () => __awaiter(this, void 0, void 0, function* () {
|
|
53
53
|
yield dlg.hide();
|
|
54
54
|
}),
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
id: 'navigate',
|
|
58
|
-
label: `
|
|
58
|
+
label: `I'm done! Let's navigate to ${formattedDestination}.`,
|
|
59
59
|
onClick: () => __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
shouldBail = true;
|
|
61
61
|
const { calendarVc } = this.getContext();
|
|
@@ -139,6 +139,7 @@ class RemoteEventStore {
|
|
|
139
139
|
return target;
|
|
140
140
|
}
|
|
141
141
|
cleanPayload(payload) {
|
|
142
|
+
const { dateToUpdate, shouldUpdateAllEventsGoingForward } = payload;
|
|
142
143
|
const normalized = (0, schema_1.normalizeSchemaValues)(calendar_utils_1.calendarEventSchema, payload, {
|
|
143
144
|
shouldValidate: false,
|
|
144
145
|
});
|
|
@@ -157,6 +158,15 @@ class RemoteEventStore {
|
|
|
157
158
|
//@ts-ignore
|
|
158
159
|
delete normalized[key];
|
|
159
160
|
}
|
|
161
|
+
if (shouldUpdateAllEventsGoingForward) {
|
|
162
|
+
;
|
|
163
|
+
normalized.shouldUpdateAllEventsGoingForward =
|
|
164
|
+
shouldUpdateAllEventsGoingForward;
|
|
165
|
+
}
|
|
166
|
+
if (dateToUpdate) {
|
|
167
|
+
;
|
|
168
|
+
normalized.dateToUpdate = dateToUpdate;
|
|
169
|
+
}
|
|
160
170
|
return normalized;
|
|
161
171
|
}
|
|
162
172
|
setCalendarId(id) {
|
|
@@ -40,14 +40,14 @@ class EventDateTimeToolViewController extends heartwood_view_controllers_1.Abstr
|
|
|
40
40
|
buttons: [
|
|
41
41
|
{
|
|
42
42
|
id: 'move',
|
|
43
|
-
label: `
|
|
43
|
+
label: `Reschedule this event to ${formattedDestination}.`,
|
|
44
44
|
onClick: async () => {
|
|
45
45
|
await dlg.hide();
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
id: 'navigate',
|
|
50
|
-
label: `
|
|
50
|
+
label: `I'm done! Let's navigate to ${formattedDestination}.`,
|
|
51
51
|
onClick: async () => {
|
|
52
52
|
shouldBail = true;
|
|
53
53
|
const { calendarVc } = this.getContext();
|