-
Notifications
You must be signed in to change notification settings - Fork 727
Expand file tree
/
Copy pathsched-params.vue
More file actions
56 lines (51 loc) · 1.6 KB
/
Copy pathsched-params.vue
File metadata and controls
56 lines (51 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<template>
<div>
<div class="flex items-center gap-1">
<el-popover trigger="hover" placement="top" popper-class="!w-72">
<template #reference>
<div class="flex items-center gap-1">
<div class="text-gray-600 text-2xs flex items-center leading-5 font-medium">
<lf-icon name="calendar" class="!text-gray-600 mr-1 h-4 flex items-center" />
{{ events.length }} {{ events.length === 1 ? 'event' : 'events' }}
</div>
</div>
</template>
<div class="max-h-44 overflow-auto -my-1 px-1">
<p class="text-gray-400 text-sm font-semibold mb-4">
Sched events
</p>
<article
v-for="event in events"
:key="event.eventId"
class="flex flex-col mb-4 last:mb-0"
>
<span class="text-gray-900 text-sm font-medium max-w-3xs truncate">
{{ event.eventName || event.subdomain }}
</span>
<span class="text-gray-500 text-xs max-w-3xs truncate">
{{ event.subdomain }}.sched.com
</span>
</article>
</div>
</el-popover>
</div>
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import LfIcon from '@/ui-kit/icon/Icon.vue';
const props = defineProps({
integration: {
type: Object,
default: () => {},
},
});
const events = computed<{ eventId: string; eventName: string; subdomain: string }[]>(
() => props.integration?.settings?.events ?? [],
);
</script>
<script lang="ts">
export default {
name: 'LfSchedParams',
};
</script>