Browse Source

fix(nc-gui): first letter caps in record filter options

pull/7611/head
DarkPhoenix2704 9 months ago
parent
commit
834dbabbc6
  1. 38
      packages/nc-gui/components/smartsheet/calendar/SideMenu.vue

38
packages/nc-gui/components/smartsheet/calendar/SideMenu.vue

@ -39,38 +39,38 @@ const options = computed(() => {
case 'day' as const: case 'day' as const:
if (calDataType.value === UITypes.Date) { if (calDataType.value === UITypes.Date) {
return [ return [
{ label: 'in this day', value: 'day' }, { label: 'In this day', value: 'day' },
{ label: 'without dates', value: 'withoutDates' }, { label: 'Without dates', value: 'withoutDates' },
{ label: 'all records', value: 'allRecords' }, { label: 'All records', value: 'allRecords' },
] ]
} else { } else {
return [ return [
{ label: 'in this day', value: 'day' }, { label: 'In this day', value: 'day' },
{ label: 'without dates', value: 'withoutDates' }, { label: 'Without dates', value: 'withoutDates' },
{ label: 'all records', value: 'allRecords' }, { label: 'All records', value: 'allRecords' },
{ label: 'in selected hours', value: 'selectedHours' }, { label: 'In selected hours', value: 'selectedHours' },
{ label: 'in selected date', value: 'selectedDate' }, { label: 'In selected date', value: 'selectedDate' },
] ]
} }
case 'week' as const: case 'week' as const:
return [ return [
{ label: 'in this week', value: 'week' }, { label: 'In this week', value: 'week' },
{ label: 'without dates', value: 'withoutDates' }, { label: 'Without dates', value: 'withoutDates' },
{ label: 'all records', value: 'allRecords' }, { label: 'All records', value: 'allRecords' },
] ]
case 'month' as const: case 'month' as const:
return [ return [
{ label: 'in this month', value: 'month' }, { label: 'In this month', value: 'month' },
{ label: 'without dates', value: 'withoutDates' }, { label: 'Without dates', value: 'withoutDates' },
{ label: 'all records', value: 'allRecords' }, { label: 'All records', value: 'allRecords' },
{ label: 'in selected date', value: 'selectedDate' }, { label: 'In selected date', value: 'selectedDate' },
] ]
case 'year' as const: case 'year' as const:
return [ return [
{ label: 'in this year', value: 'year' }, { label: 'In this year', value: 'year' },
{ label: 'without dates', value: 'withoutDates' }, { label: 'Without dates', value: 'withoutDates' },
{ label: 'all records', value: 'allRecords' }, { label: 'All records', value: 'allRecords' },
{ label: 'in selected date', value: 'selectedDate' }, { label: 'In selected date', value: 'selectedDate' },
] ]
} }
}) })

Loading…
Cancel
Save