From 9e9dc169dd50308570eb3bfcebb59cfb2b1af7ce Mon Sep 17 00:00:00 2001 From: Noe Date: Tue, 4 Jun 2024 12:20:28 +0200 Subject: [PATCH] Fixed bug with hour-representation in configuration tab (front end) --- csharp/App/SaliMax/deploy.sh | 4 ++-- csharp/App/SaliMax/src/Program.cs | 2 +- .../content/dashboards/Configuration/Configuration.tsx | 8 ++++---- .../src/content/dashboards/Overview/chartOptions.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/csharp/App/SaliMax/deploy.sh b/csharp/App/SaliMax/deploy.sh index 9bd0d801b..057e274b5 100755 --- a/csharp/App/SaliMax/deploy.sh +++ b/csharp/App/SaliMax/deploy.sh @@ -21,6 +21,6 @@ rsync -v \ ./bin/Release/$dotnet_version/linux-x64/publish/* \ $username@"$salimax_ip":~/salimax -#echo -e "\n============================ Execute ============================\n" +echo -e "\n============================ Execute ============================\n" -#sshpass -p "$root_password" ssh -o StrictHostKeyChecking=no -t "$username"@"$salimax_ip" "echo '$root_password' | sudo -S sh -c 'cd salimax && ./restart'" 2>/dev/null +sshpass -p "$root_password" ssh -o StrictHostKeyChecking=no -t "$username"@"$salimax_ip" "echo '$root_password' | sudo -S sh -c 'cd salimax && ./restart'" 2>/dev/null diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index c51db600d..ee0a76355 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -1,4 +1,4 @@ -#define Amax +#undef Amax #undef GridLimit using System.IO.Compression; diff --git a/typescript/frontend-marios2/src/content/dashboards/Configuration/Configuration.tsx b/typescript/frontend-marios2/src/content/dashboards/Configuration/Configuration.tsx index e1eec0584..66b682adf 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Configuration/Configuration.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Configuration/Configuration.tsx @@ -162,10 +162,10 @@ function Configuration(props: ConfigurationProps) { const handleConfirm = (newDate) => { //console.log('non adapted day is ', newDate); //console.log('adapted day is ', dayjs.utc(newDate).toDate()); - // setFormValues({ - // ...formValues, - // ['calibrationChargeDate']: dayjs(newDate).toDate() - // }); + setFormValues({ + ...formValues, + ['calibrationChargeDate']: dayjs(newDate).toDate() + }); }; const handleSelectedCalibrationChargeDay = (event) => { diff --git a/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx b/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx index b51e29278..956a343e8 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Overview/chartOptions.tsx @@ -167,7 +167,7 @@ export const getChartOptions = ( style: { fontSize: '12px' }, - offsetY: -185, + offsetY: -190, offsetX: 25, rotate: 0 },