diff --git a/packages/nc-gui/components/dlg/ViewCreate.vue b/packages/nc-gui/components/dlg/ViewCreate.vue index f88b0d3855..6b5a546601 100644 --- a/packages/nc-gui/components/dlg/ViewCreate.vue +++ b/packages/nc-gui/components/dlg/ViewCreate.vue @@ -217,15 +217,12 @@ async function onSubmit() { } } -/* -TODO: Add support for end date and multiple range in future const addCalendarRange = async () => { form.calendar_range.push({ fk_from_column_id: viewSelectFieldOptions.value[0].value as string, fk_to_column_id: null, }) } -*/ const isMetaLoading = ref(false) @@ -453,23 +450,20 @@ onMounted(async () => { - - - - +
diff --git a/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue b/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue index 552e630311..90a6ac5a0f 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/CalendarRange.vue @@ -93,9 +93,7 @@ const dateFieldOptions = computed(() => { ) }) -// TODO: Add support for end date in future -// To add new calendar range -/* 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, @@ -111,7 +109,7 @@ const removeRange = async (id: number) => { const saveCalendarRange = async (range: CalendarRangeType, value?) => { range.fk_to_column_id = value await saveCalendarRanges() -} */ +}