diff --git a/src/components/TimedContent.vue b/src/components/TimedContent.vue index 91d7d23..4470c87 100644 --- a/src/components/TimedContent.vue +++ b/src/components/TimedContent.vue @@ -87,11 +87,12 @@ export default { return moment.tz(this.timezone).isBetween(from, to); }, toggleContent() { + const wasShown = this.shouldShow; this.shouldShow = this.shouldShowContent(); - if (this.shouldShow) { + if (!wasShown && this.shouldShow) { this.$emit("show"); - } else { + } else if (wasShown && !this.shouldShow) { this.$emit("hide"); } }