Add icons back to spots & alerts

This commit is contained in:
Ian Renton
2026-09-05 09:48:56 +01:00
parent d6e53c14e9
commit 3e4327ec0c
20 changed files with 167 additions and 73 deletions
-14
View File
@@ -285,20 +285,6 @@ function callWanted(call) {
}
}
// Get the Font Awesome icon for a given SIG. If the SIG is unknown, the provided default symbol will be returned
// The sig is provided by name as a string, while all_sigs contains all the SIG info from the options call. This
// is because sometimes the sig name arrives via a spot and therefore we need to look up the rest of the SIG data
// separately.
function sigToIcon(sig, all_sigs, defaultIcon) {
if (sig) {
const match = all_sigs.find((check_sig) => check_sig["name"].toUpperCase() === sig.toUpperCase());
if (match) {
return match["icon"];
}
}
return defaultIcon;
}
// Startup
$(document).ready(function () {
usePreferredTheme();