Skip to content

Commit 290dd8f

Browse files
committed
Hacky wacky
1 parent ddd3f92 commit 290dd8f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pages/talks/piter.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ export default {
291291
wowSlides.includes(this.currentSlide.$attrs.id) && this.step >= 2
292292
},
293293
currentSlide: function() {
294+
this.corgi = false
295+
this.football = false
296+
this.wow = false
294297
if (this.currentSlide.$attrs.id) {
295298
this.updateSlideId(this.currentSlide.$attrs.id)
296299
const corgiSlides = ['intro', 'mistakes', 'lab', 'helloWorld']
@@ -304,11 +307,7 @@ export default {
304307
},
305308
},
306309
mounted: function() {
307-
this.currentSlideIndex = this.$route.query.slide
308-
? this.$route.query.slide
309-
: 1
310-
this.currentSlide = this.slides[this.currentSlideIndex - 1]
311-
this.$store.state.presentation.isLive = true
310+
setTimeout(this.jumpToSlide, 100)
312311
},
313312
destroyed: function() {
314313
this.$store.state.presentation.isLive = false
@@ -317,6 +316,12 @@ export default {
317316
updateUrlQuery(index) {
318317
this.$router.push({ name: 'talks-piter', query: { slide: index } })
319318
},
319+
jumpToSlide() {
320+
const slideIndex = this.$route.query.slide ? this.$route.query.slide : 1
321+
this.currentSlideIndex = slideIndex
322+
this.currentSlide = this.slides[slideIndex - 1]
323+
this.$store.state.presentation.isLive = true
324+
},
320325
},
321326
}
322327
</script>

0 commit comments

Comments
 (0)