mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 12:23:08 +02:00
25a69ec1b6
Refactoring of i18n
40 lines
879 B
Vue
40 lines
879 B
Vue
<template>
|
|
<div class="mkw-notifications">
|
|
<mk-widget-container :show-header="!props.compact">
|
|
<template slot="header"><fa :icon="['far', 'bell']"/>{{ $t('title') }}</template>
|
|
<!-- <button slot="func" :title="$t('title')" @click="settings"><fa icon="cog"/></button> -->
|
|
|
|
<mk-notifications :class="$style.notifications"/>
|
|
</mk-widget-container>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import define from '../../../common/define-widget';
|
|
import i18n from '../../../i18n';
|
|
|
|
export default define({
|
|
name: 'notifications',
|
|
props: () => ({
|
|
compact: false
|
|
})
|
|
}).extend({
|
|
i18n: i18n('desktop/views/widgets/notifications.vue'),
|
|
methods: {
|
|
settings() {
|
|
alert('not implemented yet');
|
|
},
|
|
func() {
|
|
this.props.compact = !this.props.compact;
|
|
this.save();
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" module>
|
|
.notifications
|
|
max-height 300px
|
|
overflow auto
|
|
|
|
</style>
|