wip-feat: movie result filter

This commit is contained in:
2025-04-22 13:27:08 -05:00
parent d6328786ba
commit 5c3aa595bf
5 changed files with 115 additions and 16 deletions

View File

@@ -10,11 +10,20 @@ export default class extends Controller {
imdbId: String
};
static targets = ['list']
options = []
connect() {
fetch(`/torrentio/movies/${this.imdbIdValue}`)
.then(res => res.text())
.then(response => {
this.element.innerHTML = response;
this.options = this.element.querySelectorAll('tbody tr');
});
}
listTargetConnected(target) {
// console.log(target);
}
}