Skip to content

Commit

Permalink
fix(stats): hide avg stat change if hidden (#2777)
Browse files Browse the repository at this point in the history
Fixes #2776
  • Loading branch information
sogehige committed Oct 11, 2019
1 parent 7372d84 commit 5b4cf93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/panel/others/quickStatsApp.vue
Expand Up @@ -43,7 +43,8 @@
<template v-if="!hideStats">{{ maxViewers }}</template>
<small v-else>{{translate('hidden')}}</small>
</span>
<span class="stats" v-html="difference(averageStats.maxViewers, maxViewers)"></span>
<span class="stats" v-if="!hideStats" v-html="difference(averageStats.maxViewers, maxViewers)"></span>
<span class="stats" v-else>&nbsp;</span>
</div>

<div class="col-6 col-sm-4 col-md-4 col-lg-1 stream-info" v-on:click="toggleViewerShow">
Expand All @@ -55,7 +56,8 @@
<template v-if="!hideStats">{{ newChatters }}</template>
<small v-else>{{translate('hidden')}}</small>
</span>
<span class="stats" v-html="difference(averageStats.newChatters, newChatters)"></span>
<span class="stats" v-if="!hideStats" v-html="difference(averageStats.newChatters, newChatters)"></span>
<span class="stats" v-else>&nbsp;</span>
</div>

<div class="col-6 col-sm-4 col-md-4 col-lg-1 stream-info">
Expand Down

0 comments on commit 5b4cf93

Please sign in to comment.