wip-feat: movie result filter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user