wip: working episode pagination, season switcher, monitor only new content
This commit is contained in:
@@ -29,7 +29,7 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
async setOptions() {
|
||||
if (true === this.activeValue && this.optionsLoaded === false) {
|
||||
if (this.optionsLoaded === false) {
|
||||
this.optionsLoaded = true;
|
||||
await fetch(`/torrentio/tvshows/${this.tmdbIdValue}/${this.imdbIdValue}/${this.seasonValue}/${this.episodeValue}`)
|
||||
.then(res => res.text())
|
||||
@@ -56,7 +56,7 @@ export default class extends Controller {
|
||||
|
||||
async setActive() {
|
||||
this.activeValue = true;
|
||||
this.element.classList.remove('hidden');
|
||||
// this.element.classList.remove('hidden');
|
||||
if (false === this.optionsLoaded) {
|
||||
await this.setOptions();
|
||||
}
|
||||
@@ -67,7 +67,7 @@ export default class extends Controller {
|
||||
// if (true === this.hasEpisodeSelectorTarget()) {
|
||||
this.episodeSelectorTarget.checked = false;
|
||||
// }
|
||||
this.element.classList.add('hidden');
|
||||
// this.element.classList.add('hidden');
|
||||
}
|
||||
|
||||
isActive() {
|
||||
|
||||
Reference in New Issue
Block a user