clean up svg code

This commit is contained in:
Sj-Si 2024-05-13 15:08:08 -04:00
parent a2f8f99451
commit 4e9760c49f
4 changed files with 26 additions and 27 deletions

View file

@ -1173,8 +1173,12 @@ function extraNetworksControlSortDirOnClick(event) {
}
let sort_dir_str = curr_sort_dir_str === "ascending" ? "descending" : "ascending";
btn.dataset.sortDir = sort_dir_str;
btn.setAttribute("title", `Sort ${sort_dir_str}`);
const other_btn = tab.controls_elem.querySelector(
`.extra-network-control--sort-dir[data-sort-dir="${sort_dir_str}"]`
);
delete btn.dataset.selected;
other_btn.dataset.selected = "";
tab.setSortDir(sort_dir_str);
}