2018-02-18 08:51:41 -06:00
|
|
|
<template>
|
|
|
|
<div class="mkw-notifications">
|
2018-04-19 13:56:58 -05:00
|
|
|
<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>
|
2018-02-18 08:51:41 -06:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-02-24 09:18:09 -06:00
|
|
|
import define from '../../../common/define-widget';
|
2018-02-18 08:51:41 -06:00
|
|
|
export default define({
|
|
|
|
name: 'notifications',
|
2018-02-21 00:30:03 -06:00
|
|
|
props: () => ({
|
2018-02-18 08:51:41 -06:00
|
|
|
compact: false
|
2018-02-21 00:30:03 -06:00
|
|
|
})
|
2018-02-18 08:51:41 -06:00
|
|
|
}).extend({
|
|
|
|
methods: {
|
|
|
|
settings() {
|
|
|
|
alert('not implemented yet');
|
|
|
|
},
|
|
|
|
func() {
|
|
|
|
this.props.compact = !this.props.compact;
|
2018-04-29 03:17:15 -05:00
|
|
|
this.save();
|
2018-02-18 08:51:41 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2018-04-19 13:56:58 -05:00
|
|
|
<style lang="stylus" module>
|
|
|
|
.notifications
|
|
|
|
max-height 300px
|
|
|
|
overflow auto
|
2018-02-18 08:51:41 -06:00
|
|
|
|
|
|
|
</style>
|