diff --git a/src/components/TaskEdit.tsx b/src/components/TaskEdit.tsx index fafa602..092661a 100644 --- a/src/components/TaskEdit.tsx +++ b/src/components/TaskEdit.tsx @@ -28,7 +28,7 @@ import * as ICAL from 'ical.js'; import * as EteSync from '../api/EteSync'; -import { TaskType } from '../pim-types'; +import { TaskType, TaskStatusType } from '../pim-types'; interface PropsType { collections: Array; @@ -44,6 +44,7 @@ class TaskEdit extends React.PureComponent { state: { uid: string, title: string; + status: TaskStatusType; allDay: boolean; start?: Date; due?: Date; @@ -60,6 +61,7 @@ class TaskEdit extends React.PureComponent { this.state = { uid: '', title: '', + status: TaskStatusType.NeedsAction, allDay: false, location: '', description: '', @@ -73,6 +75,7 @@ class TaskEdit extends React.PureComponent { this.state.uid = event.uid; this.state.title = event.title ? event.title : ''; + this.state.status = event.status; if (event.startDate) { this.state.allDay = event.startDate.isDate; this.state.start = event.startDate.toJSDate(); @@ -162,6 +165,7 @@ class TaskEdit extends React.PureComponent { event.uid = this.state.uid; event.summary = this.state.title; + event.status = this.state.status; if (startDate) { event.startDate = startDate; } @@ -238,6 +242,22 @@ class TaskEdit extends React.PureComponent { + + + Status + + + +