From 17f2a41ff87db1e04fbf4d07f71fe550a400803e Mon Sep 17 00:00:00 2001 From: Steven Huss-Lederman Date: Mon, 23 Aug 2021 13:54:47 -0500 Subject: [PATCH] minor fixes - Fix missing link translated text - Switch compare sorting to match help text. Ascending now means increasing change so it gives the best change (in sense of saving energy) first. --- src/client/app/containers/MultiCompareChartContainer.ts | 4 ++-- src/client/app/translations/data.json | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/app/containers/MultiCompareChartContainer.ts b/src/client/app/containers/MultiCompareChartContainer.ts index 150897518..5fb4c837d 100644 --- a/src/client/app/containers/MultiCompareChartContainer.ts +++ b/src/client/app/containers/MultiCompareChartContainer.ts @@ -129,7 +129,7 @@ function sortIDs(ids: CompareEntity[], sortingOrder: SortingOrder): CompareEntit return 0; }); break; - case SortingOrder.Descending: + case SortingOrder.Ascending: ids.sort((a, b) => { if (a.change < b.change) { return -1; @@ -140,7 +140,7 @@ function sortIDs(ids: CompareEntity[], sortingOrder: SortingOrder): CompareEntit return 0; }); break; - case SortingOrder.Ascending: + case SortingOrder.Descending: ids.sort((a, b) => { if (a.change > b.change) { return -1; diff --git a/src/client/app/translations/data.json b/src/client/app/translations/data.json index 464dfa7b6..6e1689f03 100644 --- a/src/client/app/translations/data.json +++ b/src/client/app/translations/data.json @@ -108,6 +108,7 @@ "help.meters.meterview": "This page shows information on meters. Please visit {link} for further details and information.", "hide": "Hide", "hide.options": "Hide options", + "hide.options.in.link": "Hide menu in link", "home": "Home", "import.meter.readings": "Import Meter Readings", "info": " for more information. ", @@ -325,6 +326,7 @@ "help.meters.meterview": "(Need French) This page shows information on meters. Please visit {link} for further details and information.", "hide": "Cacher", "hide.options": "Options de quai", + "hide.options.in.link": "(Need French) Hide menu in link", "home": "Accueil", "import.meter.readings": "Importer des Relevés de Mètres", "info": " pour plus d'informations. ", @@ -542,6 +544,7 @@ "help.meters.meterview": "(Need Spanish) This page shows information on meters. Please visit {link} for further details and information.", "hide": "Ocultar", "hide.options": "Opciones de muelle", + "hide.options.in.link": "(Need Spanish) Hide menu in link", "home": "Hogar", "import.meter.readings": "Importar lecturas del medidor", "info": " para obtener más información. ",