-
{{
+
+ {{
activeCalendarView === 'month' ? headerText.split(' ')[0] : headerText
}}
@@ -282,7 +282,7 @@ const headerText = computed(() => {
-
+
{
{
{{ $t(`objects.${mode}`) }}
diff --git a/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue b/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue
index 50826010a3..3ebb8d86a5 100644
--- a/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue
+++ b/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue
@@ -92,15 +92,14 @@ const dateFieldOptions = computed(() => {
})) ?? []
)
})
-
-/* const addCalendarRange = async () => {
+const addCalendarRange = async () => {
_calendar_ranges.value.push({
fk_from_column_id: dateFieldOptions.value![0].value as string,
fk_to_column_id: null,
})
await saveCalendarRanges()
}
-
+/*
const removeRange = async (id: number) => {
_calendar_ranges.value = _calendar_ranges.value.filter((_, i) => i !== id)
await saveCalendarRanges()
@@ -215,10 +214,17 @@ const saveCalendarRange = async (range: CalendarRangeType, value?) => {
-->
-
+ Add date field
+
diff --git a/packages/nc-gui/composables/useCalendarViewStore.ts b/packages/nc-gui/composables/useCalendarViewStore.ts
index 8f7ed91d02..8490a01975 100644
--- a/packages/nc-gui/composables/useCalendarViewStore.ts
+++ b/packages/nc-gui/composables/useCalendarViewStore.ts
@@ -312,7 +312,8 @@ const [useProvideCalendarViewStore, useCalendarViewStore] = useInjectionState(
})
async function loadMoreSidebarData(params: Parameters