From cc32aaf7eac45a1e589f32a327c5ad58622efaac Mon Sep 17 00:00:00 2001 From: HThuren <99370924+HThuren@users.noreply.github.com> Date: Wed, 20 Sep 2023 23:09:34 +0200 Subject: [PATCH] Ajust gps aligment of Status and Quality (#3581) * Step 1 * New aligment --- locales/en/messages.json | 9 ++++++--- src/js/tabs/gps.js | 14 ++++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index cbf1486f85..3861e75ff6 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -2792,8 +2792,11 @@ "gpsSignalSatId": { "message": "Sat ID" }, - "gpsSignalStatusQly": { - "message": "Status     |  Quality" + "gpsSignalStatus": { + "message": "Status" + }, + "gpsSignalQuality": { + "message": "Quality" }, "gnssQualityNoSignal": { "message": "no signal" @@ -2817,7 +2820,7 @@ "message": "unused" }, "gnssUsedUsed": { - "message": "USED " + "message": "USED" }, "gnssHealthyUnknown": { "message": "unknown" diff --git a/src/js/tabs/gps.js b/src/js/tabs/gps.js index 67df120f82..8af9cd4ebc 100644 --- a/src/js/tabs/gps.js +++ b/src/js/tabs/gps.js @@ -211,10 +211,11 @@ gps.initialize = async function (callback) { eSsTable.html(''); eSsTable.append(` - ${i18n.getMessage('gpsSignalGnssId')} - ${i18n.getMessage('gpsSignalSatId')} - ${i18n.getMessage('gpsSignalStr')} - ${i18n.getMessage('gpsSignalStatusQly')} + ${i18n.getMessage('gpsSignalGnssId')} + ${i18n.getMessage('gpsSignalSatId')} + ${i18n.getMessage('gpsSignalStr')} + ${i18n.getMessage('gpsSignalStatus')} + ${i18n.getMessage('gpsSignalQuality')} `); @@ -281,12 +282,13 @@ gps.initialize = async function (callback) { // 1st column: unused = red, used = green if (used.startsWith(i18n.getMessage('gnssUsedUsed'))) { - used = ` ${used} `; + used = `${used}`; } else { used = `${used}`; } - rowContent += `${used} | ${quality}`; + rowContent += `${used} + ${quality}`; } eSsTable.append(`${rowContent}`); }