diff options
| author | kaniini <nenolod@gmail.com> | 2018-10-16 14:37:32 +0000 |
|---|---|---|
| committer | kaniini <nenolod@gmail.com> | 2018-10-16 14:37:32 +0000 |
| commit | e64af481d2f8a2ea243eeca83d7af3728fd0696b (patch) | |
| tree | d281c53c0869aa37dd6d67c5c973334fda02b26a /src/components/user_card_content/user_card_content.js | |
| parent | f554edc054fcb6e0508ed5da7dc9edf1a85d2305 (diff) | |
| parent | 2bb663f0f6925082087ec08c4a28ab9e661bae96 (diff) | |
Merge branch 'hide-statistics' into 'develop'
Add options for hiding post and user engagement statistics.
See merge request pleroma/pleroma-fe!336
Diffstat (limited to 'src/components/user_card_content/user_card_content.js')
| -rw-r--r-- | src/components/user_card_content/user_card_content.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/user_card_content/user_card_content.js b/src/components/user_card_content/user_card_content.js index 76a5577e..b5dd9b91 100644 --- a/src/components/user_card_content/user_card_content.js +++ b/src/components/user_card_content/user_card_content.js @@ -3,6 +3,13 @@ import { hex2rgb } from '../../services/color_convert/color_convert.js' export default { props: [ 'user', 'switcher', 'selected', 'hideBio' ], + data () { + return { + hideUserStatsLocal: typeof this.$store.state.config.hideUserStats === 'undefined' + ? this.$store.state.instance.hideUserStats + : this.$store.state.config.hideUserStats + } + }, computed: { headingStyle () { const color = this.$store.state.config.colors.bg |
