Reverted all changes around hiding anime in user list

This commit is contained in:
Eduard Urbach 2018-07-06 02:37:22 +09:00
parent 5099663c37
commit fe1f771968
2 changed files with 2 additions and 28 deletions

View File

@ -27,14 +27,6 @@ export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
// Toggle hiding added anime.
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()
}
@ -45,11 +37,7 @@ export function hideAddedAnime() {
continue
}
if(localStorage.getItem("hide-added-anime") === "true") {
anime.classList.add("anime-grid-cell-hide")
} else {
anime.classList.remove("anime-grid-cell-hide")
}
anime.classList.toggle("anime-grid-cell-hide")
}
}

View File

@ -164,8 +164,7 @@ export default class AnimeNotifier {
Promise.resolve().then(() => this.dragAndDrop()),
Promise.resolve().then(() => this.colorStripes()),
Promise.resolve().then(() => this.assignTooltipOffsets()),
Promise.resolve().then(() => this.countUp()),
Promise.resolve().then(() => this.hideAddedAnime())
Promise.resolve().then(() => this.countUp())
])
// 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() {
for(let element of findAll("soundtrack-play-area")) {
if(element.dataset.soundtrackId === this.currentSoundTrackId) {