1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #898 from dmitrylyzo/fix_recording_icon

Fix icon doubling
This commit is contained in:
dkanada 2020-03-08 03:02:49 +09:00 committed by GitHub
commit 2a99df8365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 7 deletions

View file

@ -157,6 +157,12 @@ define(["globalize", "listView", "layoutManager", "userSettings", "focusManager"
return query;
}
function setSortButtonIcon(btnSortIcon, icon) {
btnSortIcon.classList.remove("arrow_downward");
btnSortIcon.classList.remove("arrow_upward");
btnSortIcon.classList.add(icon);
}
function updateSortText(instance) {
var btnSortText = instance.btnSortText;
@ -175,7 +181,7 @@ define(["globalize", "listView", "layoutManager", "userSettings", "focusManager"
var btnSortIcon = instance.btnSortIcon;
if (btnSortIcon) {
btnSortIcon.innerHTML = "Descending" === values.sortOrder ? "" : "";
setSortButtonIcon(btnSortIcon, "Descending" === values.sortOrder ? "arrow_downward" : "arrow_upward");
}
}
}