1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-23 11:08:31 +09:00
cherrypick/src/client/app/desktop/views/widgets/notifications.vue

38 lines
753 B
Vue
Raw Normal View History

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