Show slug in the interface

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-04-11 14:57:13 +02:00
parent ddad462076
commit 1f9019f511
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
3 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ export const FETCH_EVENT = gql`
url, url,
local, local,
title, title,
slug,
description, description,
beginsOn, beginsOn,
endsOn, endsOn,

View File

@ -49,6 +49,7 @@ export interface IEvent {
local: boolean; local: boolean;
title: string; title: string;
slug: string;
description: string; description: string;
category: Category; category: Category;
@ -77,6 +78,7 @@ export interface IEvent {
export class EventModel implements IEvent { export class EventModel implements IEvent {
beginsOn: Date = new Date(); beginsOn: Date = new Date();
category: Category = Category.MEETING; category: Category = Category.MEETING;
slug: string = '';
description: string = ''; description: string = '';
endsOn: Date = new Date(); endsOn: Date = new Date();
joinOptions: EventJoinOptions = EventJoinOptions.FREE; joinOptions: EventJoinOptions = EventJoinOptions.FREE;

View File

@ -46,8 +46,7 @@
</a> </a>
</div> </div>
<p class="slug"> <p class="slug">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. {{ event.slug }}
In aliquam libero quam, ut ultricies velit porttitor a. Maecenas mollis vestibulum dolor.
</p> </p>
</div> </div>
<div class="column sidebar"> <div class="column sidebar">