Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e62c2418 authored by szaimen's avatar szaimen Committed by backportbot[bot]
Browse files

Set default status



Signed-off-by: default avatarszaimen <szaimen@e.mail.de>
parent 067051c0
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ import { mapAlarmComponentToAlarmObject } from '../models/alarm.js'
import { getObjectAtRecurrenceId } from '../utils/calendarObject.js'
import logger from '../utils/logger.js'
import settings from './settings.js'
import { getRFCProperties } from '../models/rfcProps'

const state = {
	isNew: null,
@@ -1444,6 +1445,14 @@ const actions = {
			logger.debug(`Added defaultReminder (${defaultReminder}s) to newly created event`)
		}

		// Add default status
		const rfcProps = getRFCProperties()
		const status = rfcProps.status.defaultValue
		commit('changeStatus', {
			calendarObjectInstance,
			status,
		})

		commit('setCalendarObjectInstanceForNewEvent', {
			calendarObject,
			calendarObjectInstance,