| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/software/Services/citygists/pages/chat/ |
Upload File : |
<template>
<f7-page name="notifications">
<f7-navbar title="Notifications" back-link="Back"></f7-navbar>
<f7-block-title>
<h2>Recent Notifications</h2>
</f7-block-title>
<f7-block>
<div v-for="(notifications,index) in user_notifications" :key="index">
<f7-list v-for="(notification, i) in notifications" :key="i">
<h2 v-html="notification.title"></h2>
<p v-html="notification.message_details"></p>
<span
class="small-time"
v-html="moment(notification.timestamp).format('MMMM Do YYYY, h:mm a')"
></span>
</f7-list>
</div>
</f7-block>
</f7-page>
</template>
<script>
import moment from "moment";
import firebase from "firebase";
export default {
data() {
return {
posts: []
};
},
computed: {
user_notifications() {
return this.$store.getters.user_notifications;
}
},
methods: {},
created() {
this.$store.dispatch("getUserNotifications");
}
};
</script>
<style scoped>
.div {
margin-top: 0.3px;
}
.small-time {
font-size: 0.7em;
margin-top: 0.01px;
}
</style>