From 43e3b27598d17d8124e83439937b819e015df1dd Mon Sep 17 00:00:00 2001
From: Hermann <blumh@ethz.ch>
Date: Sat, 1 Sep 2018 14:09:55 +0200
Subject: [PATCH] change to relationlist

---
 src/events/viewEvent.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/events/viewEvent.js b/src/events/viewEvent.js
index cf2f01c..34b44ce 100644
--- a/src/events/viewEvent.js
+++ b/src/events/viewEvent.js
@@ -12,7 +12,7 @@ import { apiUrl } from 'networkConfig';
 import ItemView from '../views/itemView';
 import { eventsignups as signupConfig } from '../resourceConfig.json';
 import TableView from '../views/tableView';
-import DatalistController from '../listcontroller';
+import RelationlistController from '../relationlistcontroller';
 import { dateFormatter } from '../utils';
 import { icons, DropdownCard, Property, chip } from '../views/elements';
 import { ResourceHandler } from '../auth';
@@ -70,10 +70,7 @@ class DuoLangProperty {
 // waiting list.
 class ParticipantsTable {
   constructor({ attrs: { where } }) {
-    this.ctrl = new DatalistController('eventsignups', {
-      embedded: { user: 1 },
-      where,
-    }, ['email', 'user.firstname', 'user.lastname'], false);
+    this.ctrl = new RelationlistController('eventsignups', 'users', { where }, ['email']);
   }
 
   getItemData(data) {
-- 
GitLab