|
@@ -1891,6 +1891,11 @@ createApp({
|
|
|
bulkDays.value = next;
|
|
bulkDays.value = next;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ const key = fmtDate(day);
|
|
|
|
|
+ if (selection.value?.type === 'day' && selection.value.key === key) {
|
|
|
|
|
+ selection.value = null;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
editingBase.value = null;
|
|
editingBase.value = null;
|
|
|
editingDiscount.value = null;
|
|
editingDiscount.value = null;
|
|
|
pendingDiscountType.value = null;
|
|
pendingDiscountType.value = null;
|
|
@@ -1900,7 +1905,7 @@ createApp({
|
|
|
discountState.value = 'idle';
|
|
discountState.value = 'idle';
|
|
|
selection.value = {
|
|
selection.value = {
|
|
|
type: 'day',
|
|
type: 'day',
|
|
|
- key: fmtDate(day),
|
|
|
|
|
|
|
+ key,
|
|
|
date: day,
|
|
date: day,
|
|
|
label: day.toLocaleString('default', { month: 'long', day: 'numeric' }),
|
|
label: day.toLocaleString('default', { month: 'long', day: 'numeric' }),
|
|
|
weekday: day.toLocaleString('default', { weekday: 'long' }),
|
|
weekday: day.toLocaleString('default', { weekday: 'long' }),
|