Skip to content

Commit

Permalink
new design
Browse files Browse the repository at this point in the history
  • Loading branch information
HThuren committed Sep 9, 2023
1 parent fcaea74 commit 89798f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2812,7 +2812,7 @@
"message": "Sat ID"
},
"gpsSignalStatusQly": {
"message": "Status / Quality"
"message": "Status     |  Quality"
},
"gnssQualityNoSignal": {
"message": "no signal"
Expand Down
15 changes: 0 additions & 15 deletions src/js/tabs/gps.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ gps.initialize = async function (callback) {

let quality = i18n.getMessage(qualityArray[FC.GPS_DATA.quality[i] & 0x7]);
let used = i18n.getMessage(usedArray[(FC.GPS_DATA.quality[i] & 0x8) >> 3]);
// let healthy = i18n.getMessage(healthyArray[(FC.GPS_DATA.quality[i] & 0x30) >> 4]);

// Add color to the text
// 2nd column: no signal = red, unusable = red, searching = red, locked = yellow and fully locked = green
Expand All @@ -291,20 +290,6 @@ gps.initialize = async function (callback) {
used = `<span class="colorToggle ${usedColor}">${used}</span>`;
}

/*
// 3d column: unknown = red, non healthy = grey, healthy = orange
if (healthy.startsWith(i18n.getMessage('gnssHealthyHealthy'))) {
healthy = `<span class="colorToggle notReady">${healthy}</span>`;
} else {
if (healthy.startsWith(i18n.getMessage('gnssHealthyUnhealthy'))) {
healthy = `<span class="colorToggle search">${healthy}</span>`;
} else {
healthy = `<span class="colorToggle">${healthy}</span>`;
}
}
rowContent += `<td>${used} | ${healthy} | ${quality}</td>`;
*/

rowContent += `<td>${used} | ${quality}</td>`;
}
eSsTable.append(`<tr>${rowContent}</tr>`);
Expand Down

0 comments on commit 89798f4

Please sign in to comment.