diff --git a/src/components/ErrorMessage.vue b/src/components/ErrorMessage.vue index 0452bfb..282802b 100644 --- a/src/components/ErrorMessage.vue +++ b/src/components/ErrorMessage.vue @@ -1,96 +1,120 @@ - - - + }, + }, +}; + + - \ No newline at end of file diff --git a/src/components/GroupEventsList.vue b/src/components/GroupEventsList.vue index 89ae290..244ee9a 100644 --- a/src/components/GroupEventsList.vue +++ b/src/components/GroupEventsList.vue @@ -17,6 +17,9 @@ import CreateEventForm from '@/components/CreateEventForm.vue'; +
+

There is currently no event.

+
@@ -53,6 +56,7 @@ export default { groupAdmin: "", showSuccess: false, message_passed: "createEvent", + noEvents: false }; }, methods: { @@ -63,6 +67,9 @@ export default { if (documentSnapshot.exists()) { this.events = documentSnapshot.data()["GroupEvents"]; console.log(this.events); + if (this.events.length == 0) { + this.noEvents = true; + } } else { console.log("No such document!"); } diff --git a/src/components/LoginAuth.vue b/src/components/LoginAuth.vue index a76b510..91ccf9b 100644 --- a/src/components/LoginAuth.vue +++ b/src/components/LoginAuth.vue @@ -58,13 +58,14 @@