Reverted all changes around hiding anime in user list
This commit is contained in:
parent
5099663c37
commit
fe1f771968
@ -27,14 +27,6 @@ export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
|
|||||||
|
|
||||||
// Toggle hiding added anime.
|
// Toggle hiding added anime.
|
||||||
export function toggleHideAddedAnime(arn: AnimeNotifier, input: HTMLButtonElement) {
|
export function toggleHideAddedAnime(arn: AnimeNotifier, input: HTMLButtonElement) {
|
||||||
// Toggle state
|
|
||||||
if(localStorage.getItem("hide-added-anime") === "true") {
|
|
||||||
localStorage.setItem("hide-added-anime", "false")
|
|
||||||
} else {
|
|
||||||
localStorage.setItem("hide-added-anime", "true")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Hide anime
|
|
||||||
hideAddedAnime()
|
hideAddedAnime()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,11 +37,7 @@ export function hideAddedAnime() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if(localStorage.getItem("hide-added-anime") === "true") {
|
anime.classList.toggle("anime-grid-cell-hide")
|
||||||
anime.classList.add("anime-grid-cell-hide")
|
|
||||||
} else {
|
|
||||||
anime.classList.remove("anime-grid-cell-hide")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,8 +164,7 @@ export default class AnimeNotifier {
|
|||||||
Promise.resolve().then(() => this.dragAndDrop()),
|
Promise.resolve().then(() => this.dragAndDrop()),
|
||||||
Promise.resolve().then(() => this.colorStripes()),
|
Promise.resolve().then(() => this.colorStripes()),
|
||||||
Promise.resolve().then(() => this.assignTooltipOffsets()),
|
Promise.resolve().then(() => this.assignTooltipOffsets()),
|
||||||
Promise.resolve().then(() => this.countUp()),
|
Promise.resolve().then(() => this.countUp())
|
||||||
Promise.resolve().then(() => this.hideAddedAnime())
|
|
||||||
])
|
])
|
||||||
|
|
||||||
// Apply page title
|
// Apply page title
|
||||||
@ -474,19 +473,6 @@ export default class AnimeNotifier {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hides anime already existing in the user's anime list automatically
|
|
||||||
hideAddedAnime() {
|
|
||||||
if(!this.app.currentPath.includes("/explore") && !this.app.currentPath.includes("/genre")) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if(localStorage.getItem("hide-added-anime") !== "true") {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
actions.hideAddedAnime()
|
|
||||||
}
|
|
||||||
|
|
||||||
markPlayingSoundTrack() {
|
markPlayingSoundTrack() {
|
||||||
for(let element of findAll("soundtrack-play-area")) {
|
for(let element of findAll("soundtrack-play-area")) {
|
||||||
if(element.dataset.soundtrackId === this.currentSoundTrackId) {
|
if(element.dataset.soundtrackId === this.currentSoundTrackId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user