egirlskey/src/client/app/mobile/views/widgets/activity.vue

36 lines
671 B
Vue
Raw Normal View History

2018-02-23 17:46:09 +00:00
<template>
<div class="mkw-activity">
2018-02-23 18:03:26 +00:00
<mk-widget-container :show-header="!props.compact">
<template slot="header"><fa icon="chart-bar"/>{{ $t('activity') }}</template>
2018-02-23 17:46:09 +00:00
<div :class="$style.body">
2018-05-27 04:49:09 +00:00
<mk-activity :user="$store.state.i"/>
2018-02-23 17:46:09 +00:00
</div>
</mk-widget-container>
</div>
</template>
<script lang="ts">
2018-02-24 15:18:09 +00:00
import define from '../../../common/define-widget';
import i18n from '../../../i18n';
2018-02-23 17:46:09 +00:00
export default define({
name: 'activity',
2018-02-23 18:03:26 +00:00
props: () => ({
compact: false
})
}).extend({
i18n: i18n(),
2018-02-23 18:03:26 +00:00
methods: {
func() {
this.props.compact = !this.props.compact;
2018-04-29 08:17:15 +00:00
this.save();
2018-02-23 18:03:26 +00:00
}
}
2018-02-23 17:46:09 +00:00
});
</script>
<style lang="stylus" module>
.body
padding 8px
</style>