Browse Source

fix(nc-gui): minor fixes

pull/7753/head
DarkPhoenix2704 9 months ago
parent
commit
21d0bf3b82
  1. 2
      packages/nc-gui/components/smartsheet/calendar/MonthView.vue
  2. 5
      packages/nc-gui/composables/useCalendarViewStore.ts

2
packages/nc-gui/components/smartsheet/calendar/MonthView.vue

@ -390,7 +390,7 @@ const calculateNewRow = (event: MouseEvent, updateSideBar?: boolean) => {
updateProperty.push(toCol!.title!)
}
if (!newRow) return
if (!newRow) return { newRow: null, updateProperty: [] }
const newPk = extractPkFromRow(newRow.row, meta.value!.columns!)

5
packages/nc-gui/composables/useCalendarViewStore.ts

@ -733,9 +733,8 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState(
watch(activeCalendarView, async (value, oldValue) => {
if (oldValue === 'week') {
pageDate.value = selectedDate.value
selectedDate.value = selectedDateRange.value.start
selectedMonth.value = selectedDateRange.value.start
selectedTime.value = selectedDateRange.value.start
selectedMonth.value = selectedDate.value ?? selectedDateRange.value.start
selectedTime.value = selectedDate.value ?? selectedDateRange.value.start
} else if (oldValue === 'month') {
selectedDate.value = selectedMonth.value
pageDate.value = selectedDate.value

Loading…
Cancel
Save