fix: cleans up paginator
This commit is contained in:
@@ -24,7 +24,6 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
paginate(event) {
|
||||
console.log(event.params.page)
|
||||
this.element.querySelectorAll(".episode-container").forEach(element => element.remove());
|
||||
this.component.action('paginate', {page: event.params.page});
|
||||
this.component.render();
|
||||
|
||||
@@ -55,19 +55,13 @@ export default class extends Controller {
|
||||
// }
|
||||
|
||||
async setActive() {
|
||||
this.activeValue = true;
|
||||
// this.element.classList.remove('hidden');
|
||||
if (false === this.optionsLoaded) {
|
||||
await this.setOptions();
|
||||
}
|
||||
}
|
||||
|
||||
async setInActive() {
|
||||
this.activeValue = false;
|
||||
// if (true === this.hasEpisodeSelectorTarget()) {
|
||||
this.episodeSelectorTarget.checked = false;
|
||||
// }
|
||||
// this.element.classList.add('hidden');
|
||||
}
|
||||
|
||||
isActive() {
|
||||
|
||||
Reference in New Issue
Block a user