diff --git a/client/src/layouts/DefaultLayout.vue b/client/src/layouts/DefaultLayout.vue index 31c70bd4..97b2e9e3 100644 --- a/client/src/layouts/DefaultLayout.vue +++ b/client/src/layouts/DefaultLayout.vue @@ -41,7 +41,6 @@ } } } - } diff --git a/client/src/pages/room.vue b/client/src/pages/room.vue index 6747d5e5..83eff27c 100644 --- a/client/src/pages/room.vue +++ b/client/src/pages/room.vue @@ -9,7 +9,7 @@
- +
@@ -47,27 +47,33 @@ this.$store.dispatch('setSpecialContainerClass', 'red'); }, + data() { + return { + room: [] + } + }, + + computed: { + roomEntryCount() { + return (this.room && this.room.roomEntries) ? this.room.roomEntries.length : 0 + } + }, + apollo: { modules: { query: ROOM_ENTRIES_QUERY, - variables: { - slug: this.slug - // slug: "ein-historisches-festival" + variables() { + return { + slug: this.slug + } }, manual: true, result({data, loading, networkStatus}) { if (!loading) { - debugger this.room = this.$getRidOfEdges(data).room } } } - }, - - data() { - return { - room: [] - } } // data() {