|
|
|
@ -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,18 +453,22 @@ onMounted(async () => {
|
|
|
|
|
</div> |
|
|
|
|
</a-select-option> |
|
|
|
|
</NcSelect> |
|
|
|
|
<div |
|
|
|
|
v-if="range.fk_to_column_id === null && isEeUI && false" |
|
|
|
|
class="cursor-pointer flex items-center text-gray-800 gap-1" |
|
|
|
|
@click="range.fk_to_column_id = undefined" |
|
|
|
|
> |
|
|
|
|
<component :is="iconMap.plus" class="h-4 w-4" /> |
|
|
|
|
{{ $t('activity.addEndDate') }} |
|
|
|
|
</div> |
|
|
|
|
<template v-else-if="isEeUI && false"> |
|
|
|
|
<span> |
|
|
|
|
<!-- |
|
|
|
|
<div |
|
|
|
|
v-if="range.fk_to_column_id === null && isEeUI" |
|
|
|
|
class="cursor-pointer flex items-center text-gray-800 gap-1" |
|
|
|
|
@click="range.fk_to_column_id = undefined" |
|
|
|
|
> |
|
|
|
|
<component :is="iconMap.plus" class="h-4 w-4" /> |
|
|
|
|
{{ $t('activity.addEndDate') }} |
|
|
|
|
</div> |
|
|
|
|
<template v-else-if="isEeUI"> |
|
|
|
|
<span> |
|
|
|
|
{{ $t('activity.withEndDate') }} |
|
|
|
|
</span> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
TODO: Add support for end date and multiple range in future |
|
|
|
|
|
|
|
|
|
<div class="flex"> |
|
|
|
|
<NcSelect |
|
|
|
|
v-model:value="range.fk_to_column_id" |
|
|
|
@ -492,10 +499,10 @@ onMounted(async () => {
|
|
|
|
|
</NcSelect> |
|
|
|
|
<NcButton class="!rounded-l-none !border-l-0" size="small" type="secondary" @click="range.fk_to_column_id = null"> |
|
|
|
|
<component :is="iconMap.delete" class="h-4 w-4" /> |
|
|
|
|
</NcButton> |
|
|
|
|
</NcButton> --> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<NcButton |
|
|
|
|
<!-- <NcButton |
|
|
|
|
v-if="index !== 0" |
|
|
|
|
size="small" |
|
|
|
|
type="secondary" |
|
|
|
@ -508,11 +515,11 @@ onMounted(async () => {
|
|
|
|
|
<component :is="iconMap.close" /> |
|
|
|
|
</NcButton> |
|
|
|
|
</div> |
|
|
|
|
<NcButton v-if="false" class="mt-2" size="small" type="secondary" @click="addCalendarRange"> |
|
|
|
|
<NcButton class="mt-2" size="small" type="secondary" @click="addCalendarRange"> |
|
|
|
|
<component :is="iconMap.plus" /> |
|
|
|
|
Add another date field |
|
|
|
|
</NcButton> |
|
|
|
|
</template> |
|
|
|
|
--> |
|
|
|
|
</a-form> |
|
|
|
|
<div v-else-if="!isNecessaryColumnsPresent" class="flex flex-row p-4 border-gray-200 border-1 gap-x-4 rounded-lg w-full"> |
|
|
|
|
<GeneralIcon class="!text-5xl text-orange-500" icon="warning" /> |
|
|
|
|