diff --git a/packages/nc-gui/components/dlg/ViewCreate.vue b/packages/nc-gui/components/dlg/ViewCreate.vue
index 59bd00a8b1..d5fe2c5b4d 100644
--- a/packages/nc-gui/components/dlg/ViewCreate.vue
+++ b/packages/nc-gui/components/dlg/ViewCreate.vue
@@ -217,12 +217,15 @@ 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)
@@ -450,19 +453,23 @@ onMounted(async () => {
-
-
- {{ $t('activity.addEndDate') }}
-
-
-
- {{ $t('activity.withEndDate') }}
-
-
+
+
+
+
diff --git a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
index 8f099c3fb8..4628cca234 100644
--- a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
@@ -742,6 +742,7 @@ const viewMore = (hour: dayjs.Dayjs) => {
:record="record"
:resize="!!record.rowMeta.range?.fk_to_col && isUIAllowed('dataEdit')"
color="blue"
+ @resize-start="onResizeStart"
>
(() => {
)
})
+// 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,
@@ -110,7 +111,7 @@ const removeRange = async (id: number) => {
const saveCalendarRange = async (range: CalendarRangeType, value?) => {
range.fk_to_column_id = value
await saveCalendarRanges()
-}
+} */
@@ -148,9 +149,9 @@ const saveCalendarRange = async (range: CalendarRangeType, value?) => {
@change="saveCalendarRanges"
>
{
if (id === 0) return true
- const firstRange = dateFieldOptions.find((f) => f.value === calendarRange[0].fk_from_column_id)
+ const firstRange = (dateFieldOptions ?? []).find((f) => f.value === calendarRange[0].fk_from_column_id)
return firstRange?.uidt === r.uidt
})"
:key="opId"
@@ -166,65 +167,69 @@ const saveCalendarRange = async (range: CalendarRangeType, value?) => {
-
-
- {{ $t('activity.addEndDate') }}
-
-
-
- {{ $t('activity.withEndDate') }}
-
-
-
-
-
-
-
- {{ option.label }}
- {{ option.label }}
-
+
-
-
- Add another date field
-
diff --git a/packages/nc-gui/layouts/shared-view.vue b/packages/nc-gui/layouts/shared-view.vue
index 85b1f64d29..c6802c92af 100644
--- a/packages/nc-gui/layouts/shared-view.vue
+++ b/packages/nc-gui/layouts/shared-view.vue
@@ -1,4 +1,5 @@