From 15aa67d4265243efc77746fbf005a0289d07afa4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 3 Oct 2019 12:32:20 +0200 Subject: [PATCH] Hide groups and multiple fixes Closes #169 Signed-off-by: Thomas Citharel --- js/src/components/Event/EventListCard.vue | 9 ++-- js/src/components/NavBar.vue | 46 +++++--------------- js/src/components/Report/ReportCard.vue | 3 -- js/src/graphql/admin.ts | 1 + js/src/router/actor.ts | 52 +++++++++++------------ js/src/views/Account/MyAccount.vue | 10 ++--- js/src/views/Admin/Dashboard.vue | 22 +++++----- js/src/views/Event/Event.vue | 3 +- js/src/views/Home.vue | 6 +-- js/src/views/Moderation/Logs.vue | 18 ++++---- js/src/views/Moderation/Report.vue | 26 +++++------- js/src/views/Moderation/ReportList.vue | 14 +++--- js/src/views/Search.vue | 36 ++++++++-------- js/src/views/User/Login.vue | 6 ++- js/src/views/User/PasswordChange.vue | 10 ++--- js/src/views/User/Register.vue | 9 ++-- js/src/views/User/Validate.vue | 3 +- 17 files changed, 117 insertions(+), 157 deletions(-) diff --git a/js/src/components/Event/EventListCard.vue b/js/src/components/Event/EventListCard.vue index ee29a9584..4abac1302 100644 --- a/js/src/components/Event/EventListCard.vue +++ b/js/src/components/Event/EventListCard.vue @@ -44,7 +44,7 @@
  • - + {{ $t('Edit') }}
  • @@ -52,12 +52,12 @@ {{ $t('Delete') }}
  • - + {{ $t('Manage participations') }}
  • - {{ $t('View event page') }} + {{ $t('View event page') }}
@@ -70,7 +70,6 @@ import { IParticipant, ParticipantRole, EventVisibility } from '@/types/event.mo import { Component, Prop } from 'vue-property-decorator'; import DateCalendarIcon from '@/components/Event/DateCalendarIcon.vue'; import { IActor, IPerson, Person } from '@/types/actor'; -import { EventRouteName } from '@/router/event'; import { mixins } from 'vue-class-component'; import ActorMixin from '@/mixins/actor'; import { CURRENT_ACTOR_CLIENT, LOGGED_USER_PARTICIPATIONS } from '@/graphql/actor'; @@ -100,8 +99,8 @@ export default class EventListCard extends mixins(ActorMixin, EventMixin) { currentActor!: IPerson; ParticipantRole = ParticipantRole; - EventRouteName = EventRouteName; EventVisibility = EventVisibility; + RouteName = RouteName; defaultOptions: IEventCardOptions = { hideDate: true, diff --git a/js/src/components/NavBar.vue b/js/src/components/NavBar.vue index fb1a14791..27425aa2d 100644 --- a/js/src/components/NavBar.vue +++ b/js/src/components/NavBar.vue @@ -4,8 +4,8 @@