Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not keep loading the slide list on every reopen
Loading the slide list once was more than enough.

Signed-off-by: Roeland Jago Douma <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
  • Loading branch information
rullzer authored and npmbuildbot[bot] committed Jul 2, 2020
commit 75d76c1ac07e5f17173ed79aa9a64a36c0d01003
2 changes: 1 addition & 1 deletion js/firstrunwizard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/firstrunwizard.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ export default {
currentSlide: 0,
fadeDirection: 'next',
isMobile: window.outerWidth < 1024,
slidesLoaded: false,
}
},
computed: {
Expand Down Expand Up @@ -376,9 +377,14 @@ export default {
},
methods: {
async loadStaticSlides() {
if (this.slidesLoaded) {
return
}

try {
const response = await axios.get(generateUrl('/apps/firstrunwizard/wizard'))
this.slides.push(...response.data)
this.slidesLoaded = true
} catch (e) {
console.error('Failed to load slides')
}
Expand Down