-
{{ location.label || 'Virtual Location' }}
+
+import EventEditorDateTimeField from './EventEditorDateTimeField.vue'
+
interface Props {
mode: 'edit' | 'view'
notifications: Record
@@ -13,14 +15,12 @@ const emit = defineEmits<{
const typeOptions = [
{ title: 'Email', value: 'email' },
- { title: 'Visual (Display)', value: 'visual' },
- { title: 'Audible (Sound)', value: 'audible' }
+ { title: 'Display', value: 'visual' }
]
const patternOptions = [
- { title: 'Absolute (Specific Time)', value: 'absolute' },
- { title: 'Relative (Before Event)', value: 'relative' },
- { title: 'Unknown', value: 'unknown' }
+ { title: 'Relative', value: 'relative' },
+ { title: 'Absolute', value: 'absolute' },
]
const anchorOptions = [
@@ -28,6 +28,18 @@ const anchorOptions = [
{ title: 'End Time', value: 'end' }
]
+const offsetPresets = [
+ { title: '5 minutes before', value: 'PT5M' },
+ { title: '10 minutes before', value: 'PT10M' },
+ { title: '15 minutes before', value: 'PT15M' },
+ { title: '30 minutes before', value: 'PT30M' },
+ { title: '1 hour before', value: 'PT1H' },
+ { title: '2 hours before', value: 'PT2H' },
+ { title: '1 day before', value: 'P1D' },
+ { title: '2 days before', value: 'P2D' },
+ { title: '1 week before', value: 'P1W' },
+]
+
const formatNotification = (notification: any) => {
if (notification.pattern === 'absolute' && notification.when) {
return `At ${new Date(notification.when).toLocaleString()}`
@@ -48,7 +60,7 @@ const formatNotification = (notification: any) => {
variant="outlined"
@click="$emit('add-notification')">
mdi-plus
- Add Notification
+ Add
@@ -69,9 +81,65 @@ const formatNotification = (notification: any) => {
-
-
-
Notification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
@click="$emit('remove-notification', key)">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/editors/EventEditorParticipants.vue b/src/components/editors/EventEditorParticipants.vue
index 926fa94..27ece98 100644
--- a/src/components/editors/EventEditorParticipants.vue
+++ b/src/components/editors/EventEditorParticipants.vue
@@ -90,7 +90,7 @@ const hasParticipants = () => {
variant="outlined"
@click="$emit('add-participant')">
mdi-plus
- Add Participant
+ Add
@@ -131,8 +131,7 @@ const hasParticipants = () => {
-
-
{{ participant.name || 'Participant' }}
+