paricafe/src/client/widgets/notifications.vue
syuilo f6154dc0af
v12 (#5712)
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>
Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
2020-01-30 04:37:25 +09:00

46 lines
871 B
Vue

<template>
<div class="mkw-notifications">
<mk-container :show-header="!props.compact">
<template #header><fa :icon="faBell"/>{{ $t('notifications') }}</template>
<div style="height: 300px; overflow: auto; background: var(--bg);">
<x-notifications/>
</div>
</mk-container>
</div>
</template>
<script lang="ts">
import { faBell } from '@fortawesome/free-solid-svg-icons';
import MkContainer from '../components/ui/container.vue';
import XNotifications from '../components/notifications.vue';
import define from './define';
import i18n from '../i18n';
export default define({
name: 'notifications',
props: () => ({
compact: false
})
}).extend({
i18n,
components: {
MkContainer,
XNotifications,
},
data() {
return {
faBell
};
},
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
},
}
});
</script>