summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/widgets/notifications.vue
blob: 091b0d8b98a1bcfb99cc2fb1f8f32b3d37964d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
<div class="mkw-notifications">
	<mk-widget-container :show-header="!props.compact">
		<template slot="header">%fa:R bell%%i18n:@title%</template>
		<button slot="func" title="%i18n:@settings%" @click="settings">%fa:cog%</button>

		<mk-notifications :class="$style.notifications"/>
	</mk-widget-container>
</div>
</template>

<script lang="ts">
import define from '../../../common/define-widget';
export default define({
	name: 'notifications',
	props: () => ({
		compact: false
	})
}).extend({
	methods: {
		settings() {
			alert('not implemented yet');
		},
		func() {
			this.props.compact = !this.props.compact;
		}
	}
});
</script>

<style lang="stylus" module>
.notifications
	max-height 300px
	overflow auto

</style>