diff --git a/js/src/views/Home.vue b/js/src/views/Home.vue index f9581114c..fa743a7e9 100644 --- a/js/src/views/Home.vue +++ b/js/src/views/Home.vue @@ -189,10 +189,7 @@ }} -
+

{{ $t("Your upcoming events") }}

@@ -236,7 +233,7 @@
-
+

{{ $t("Last week") }}

@@ -250,7 +247,7 @@
-
+

{{ $t("Events nearby") }}

@@ -285,7 +282,12 @@
-
+

{{ $t("Last published events") }} @@ -586,6 +588,18 @@ export default class Home extends Vue { }); } } + + get canShowMyUpcomingEvents(): boolean { + return this.currentActor.id != undefined && this.goingToEvents.size > 0; + } + + get canShowLastWeekEvents(): boolean { + return this.currentActor && this.lastWeekEvents.length > 0; + } + + get canShowCloseEvents(): boolean { + return this.closeEvents.total > 0; + } }