@sprucelabs/spruce-calendar-components 24.2.29 → 24.2.30
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.
|
@@ -295,21 +295,21 @@ class RootSkillViewController extends AbstractSkillViewController {
|
|
|
295
295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
296
|
if (RootSkillViewController.shouldConfirmDrops) {
|
|
297
297
|
const event = this.events.getEvent(id);
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
title: 'Did you mean to drag and drop this?',
|
|
304
|
-
});
|
|
305
|
-
if (!pass) {
|
|
306
|
-
yield this.client.emit('vote-for-feature::v2020_12_25', {
|
|
307
|
-
payload: {
|
|
308
|
-
featureKey: 'no-bad-drags',
|
|
309
|
-
skillNamespace: 'calendar',
|
|
310
|
-
},
|
|
298
|
+
const hasStartTimeChanged = event.startDateTimeMs !== updates.startDateTimeMs;
|
|
299
|
+
const shouldSkipConfirm = updates.startDateTimeMs && hasStartTimeChanged;
|
|
300
|
+
if (shouldSkipConfirm) {
|
|
301
|
+
const pass = yield this.confirm({
|
|
302
|
+
title: 'Did you mean to drag and drop this?',
|
|
311
303
|
});
|
|
312
|
-
|
|
304
|
+
if (!pass) {
|
|
305
|
+
yield this.client.emit('vote-for-feature::v2020_12_25', {
|
|
306
|
+
payload: {
|
|
307
|
+
featureKey: 'no-bad-drags',
|
|
308
|
+
skillNamespace: 'calendar',
|
|
309
|
+
},
|
|
310
|
+
});
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
return this.events.handleDropEvent(id, updates);
|
|
@@ -258,21 +258,21 @@ class RootSkillViewController extends heartwood_view_controllers_1.AbstractSkill
|
|
|
258
258
|
async handleDropEvent(id, updates) {
|
|
259
259
|
if (RootSkillViewController.shouldConfirmDrops) {
|
|
260
260
|
const event = this.events.getEvent(id);
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
title: 'Did you mean to drag and drop this?',
|
|
267
|
-
});
|
|
268
|
-
if (!pass) {
|
|
269
|
-
await this.client.emit('vote-for-feature::v2020_12_25', {
|
|
270
|
-
payload: {
|
|
271
|
-
featureKey: 'no-bad-drags',
|
|
272
|
-
skillNamespace: 'calendar',
|
|
273
|
-
},
|
|
261
|
+
const hasStartTimeChanged = event.startDateTimeMs !== updates.startDateTimeMs;
|
|
262
|
+
const shouldSkipConfirm = updates.startDateTimeMs && hasStartTimeChanged;
|
|
263
|
+
if (shouldSkipConfirm) {
|
|
264
|
+
const pass = await this.confirm({
|
|
265
|
+
title: 'Did you mean to drag and drop this?',
|
|
274
266
|
});
|
|
275
|
-
|
|
267
|
+
if (!pass) {
|
|
268
|
+
await this.client.emit('vote-for-feature::v2020_12_25', {
|
|
269
|
+
payload: {
|
|
270
|
+
featureKey: 'no-bad-drags',
|
|
271
|
+
skillNamespace: 'calendar',
|
|
272
|
+
},
|
|
273
|
+
});
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
return this.events.handleDropEvent(id, updates);
|