Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load all episodes if we're coming from the testRename page. #10465

Merged
merged 1 commit into from
Mar 31, 2022
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
13 changes: 11 additions & 2 deletions themes-default/slim/src/components/display-show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,9 @@ export default {

_getEpisodes(showSlug);
},
initializeEpisodes() {
initializeEpisodes(force = false) {
const { getEpisodes, showSlug, setRecentShow, show } = this;
if (!show.seasons && show.seasonCount) {
if (force || (!show.seasons && show.seasonCount)) {
// Load episodes for the first page.
this.loadEpisodes(1);
// Always get special episodes if available.
Expand Down Expand Up @@ -1010,6 +1010,15 @@ export default {
sceneObjectToString(value) {
return `${value.season}x${value.episode}`;
}
},
watch: {
$route(to, from) {
if (to.name === 'show' && from.name === 'testRename') {
// Load all episodes if we're coming from the testRename page.
this.initializeEpisodes(true);
}
}

}
};
</script>
Expand Down
Loading