This repository has been archived on 2021-07-29. You can view files and clone it, but cannot push or open issues or pull requests.
2021-06-27 16:30:58 +02:00
|
|
|
<template>
|
2021-07-27 11:34:31 +02:00
|
|
|
<section>
|
|
|
|
<base-card>
|
|
|
|
<header>
|
|
|
|
<h2>Requests Received</h2>
|
|
|
|
</header>
|
2021-07-27 17:14:53 +02:00
|
|
|
<ul v-if="hasRequests">
|
2021-07-27 17:17:46 +02:00
|
|
|
<request-item v-for="req in recievedRequests" :key="req.id" :email="req.userEmail" :message="req.message">
|
2021-07-27 17:14:53 +02:00
|
|
|
</request-item>
|
|
|
|
</ul>
|
2021-07-27 11:41:01 +02:00
|
|
|
<h3 v-else>You haven't received any messages</h3>
|
2021-07-27 11:34:31 +02:00
|
|
|
</base-card>
|
|
|
|
</section>
|
2021-06-27 16:30:58 +02:00
|
|
|
</template>
|
2021-07-27 11:34:31 +02:00
|
|
|
|
|
|
|
<script>
|
2021-07-27 17:14:53 +02:00
|
|
|
import RequestItem from "../../components/requests/RequestItem.vue"
|
|
|
|
|
2021-07-27 11:41:01 +02:00
|
|
|
export default {
|
2021-07-27 17:14:53 +02:00
|
|
|
components: {
|
|
|
|
RequestItem
|
|
|
|
},
|
2021-07-27 11:41:01 +02:00
|
|
|
computed: {
|
|
|
|
recievedRequests() {
|
|
|
|
return this.$store.getters['requests/requests'];
|
|
|
|
},
|
|
|
|
hasRequests() {
|
|
|
|
return this.$store.getters['requests/hasRequests'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2021-07-27 11:34:31 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
header {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
margin: 2rem auto;
|
|
|
|
padding: 0;
|
|
|
|
max-width: 30rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
</style>
|