2018-02-18 16:51:41 +02:00
|
|
|
<template>
|
|
|
|
<div class="mkw-notifications">
|
2018-04-19 21:56:58 +03:00
|
|
|
<mk-widget-container :show-header="!props.compact">
|
2018-11-05 18:40:11 +02:00
|
|
|
<template slot="header"><fa :icon="['far', 'bell']"/>%i18n:@title%</template>
|
|
|
|
<!-- <button slot="func" title="%i18n:@settings%" @click="settings"><fa icon="cog"/></button> -->
|
2018-04-19 21:56:58 +03:00
|
|
|
|
|
|
|
<mk-notifications :class="$style.notifications"/>
|
|
|
|
</mk-widget-container>
|
2018-02-18 16:51:41 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-02-24 17:18:09 +02:00
|
|
|
import define from '../../../common/define-widget';
|
2018-02-18 16:51:41 +02:00
|
|
|
export default define({
|
|
|
|
name: 'notifications',
|
2018-02-21 08:30:03 +02:00
|
|
|
props: () => ({
|
2018-02-18 16:51:41 +02:00
|
|
|
compact: false
|
2018-02-21 08:30:03 +02:00
|
|
|
})
|
2018-02-18 16:51:41 +02:00
|
|
|
}).extend({
|
|
|
|
methods: {
|
|
|
|
settings() {
|
|
|
|
alert('not implemented yet');
|
|
|
|
},
|
|
|
|
func() {
|
|
|
|
this.props.compact = !this.props.compact;
|
2018-04-29 11:17:15 +03:00
|
|
|
this.save();
|
2018-02-18 16:51:41 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-04-19 21:56:58 +03:00
|
|
|
<style lang="stylus" module>
|
|
|
|
.notifications
|
|
|
|
max-height 300px
|
|
|
|
overflow auto
|
2018-02-18 16:51:41 +02:00
|
|
|
|
|
|
|
</style>
|