fix: wrong season listed in download season modal
This commit is contained in:
@@ -127,6 +127,7 @@ export default class extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async filter() {
|
async filter() {
|
||||||
|
const downloadSeasonSpan = document.querySelector("#downloadSeasonModal");
|
||||||
const currentSeason = this.activeFilter['season'];
|
const currentSeason = this.activeFilter['season'];
|
||||||
|
|
||||||
let results = [];
|
let results = [];
|
||||||
@@ -145,6 +146,7 @@ export default class extends Controller {
|
|||||||
} else if ("tvshows" === this.mediaTypeValue) {
|
} else if ("tvshows" === this.mediaTypeValue) {
|
||||||
results = this.tvResultsOutlets;
|
results = this.tvResultsOutlets;
|
||||||
this.activeFilter.season = this.seasonTarget.value;
|
this.activeFilter.season = this.seasonTarget.value;
|
||||||
|
downloadSeasonSpan.innerText = this.activeFilter.season;
|
||||||
await results.forEach((list) => list.filter(this.activeFilter, currentSeason, this.seasonTarget.value));
|
await results.forEach((list) => list.filter(this.activeFilter, currentSeason, this.seasonTarget.value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
<a href="{{ path('app_user_preferences') }}" class="text-underline">preferences</a> to choose
|
<a href="{{ path('app_user_preferences') }}" class="text-underline">preferences</a> to choose
|
||||||
the appropriate file(s).
|
the appropriate file(s).
|
||||||
<br /><br />
|
<br /><br />
|
||||||
Do you wish to download <strong>season {{ results.season }}</strong> of "<strong>{{ results.media.title }}</strong>"?
|
Do you wish to download <strong>season <span id="downloadSeasonModal">{{ results.season }}</span></strong> of "<strong>{{ results.media.title }}</strong>"?
|
||||||
</twig:Modal>
|
</twig:Modal>
|
||||||
|
|
||||||
<button class="px-1.5 py-1 bg-green-600 hover:bg-green-700 rounded-ms text-sm font-semibold"
|
<button class="px-1.5 py-1 bg-green-600 hover:bg-green-700 rounded-ms text-sm font-semibold"
|
||||||
|
|||||||
Reference in New Issue
Block a user