Skip to content
Snippets Groups Projects
Verified Commit 6c1c7534 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show location for calendar events

parent f1c8b5cd
No related branches found
No related tags found
1 merge request!1148Calendar events and iCal feeds
Pipeline #135641 failed
<template>
<base-calendar-feed-details v-bind="$props" />
<div>
<base-calendar-feed-details v-bind="$props" />
<v-divider inset v-if="selectedEvent.location" />
<v-list-item v-if="selectedEvent.location">
<v-list-item-icon>
<v-icon color="primary">mdi-map-marker-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
{{ selectedEvent.location }}
</v-list-item-content>
</v-list-item>
</div>
</template>
<script>
......
......@@ -12,6 +12,7 @@ query ($start: Date, $end: Date) {
end
color
description
location
uid
allDay
status
......
......@@ -9,6 +9,7 @@ from graphene import ObjectType
class CalendarEventType(ObjectType):
name = graphene.String()
description = graphene.String()
location = graphene.String(required=False)
start = graphene.String()
end = graphene.String()
color = graphene.String()
......@@ -23,6 +24,9 @@ class CalendarEventType(ObjectType):
def resolve_description(root, info, **kwargs):
return root["DESCRIPTION"]
def resolve_location(root, info, **kwargs):
return root.get("LOCATION", "")
def resolve_start(root, info, **kwargs):
return root["DTSTART"].dt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment