2020-02-18 15:16:49 -06:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<portal to="icon"><fa :icon="faBell"/></portal>
|
2020-07-24 11:36:39 -05:00
|
|
|
<portal to="title" v-t="'notifications'"></portal>
|
2020-02-18 15:16:49 -06:00
|
|
|
<x-notifications @before="before" @after="after" page/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import { faBell } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import Progress from '../scripts/loading';
|
|
|
|
import XNotifications from '../components/notifications.vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t('notifications') as string
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
components: {
|
|
|
|
XNotifications
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
faBell
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
before() {
|
|
|
|
Progress.start();
|
|
|
|
},
|
|
|
|
|
|
|
|
after() {
|
|
|
|
Progress.done();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|