From 577fa9bae6376e32d48d8405fced03d87aff61f8 Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Wed, 2 Aug 2023 21:46:57 -0400 Subject: [PATCH 1/2] Fix #652 - respect PopupDecimalPlaces in all cases Fixing #652, thanks for the report! --- src/MiniProfiler.Shared/Internal/Render.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MiniProfiler.Shared/Internal/Render.cs b/src/MiniProfiler.Shared/Internal/Render.cs index 032466c7..777a511a 100644 --- a/src/MiniProfiler.Shared/Internal/Render.cs +++ b/src/MiniProfiler.Shared/Internal/Render.cs @@ -193,6 +193,10 @@ public static string Includes( sb.Append(options.ColorScheme.ToString()); sb.Append('"'); + sb.Append("\" data-decimal-places=\""); + sb.Append(options.PopupDecimalPlaces.ToString()); + sb.Append('"'); + if (isAuthorized) { sb.Append(" data-authorized=\"true\""); From 5a576f790bc08a2f9748f0946e8cd34d3674b32e Mon Sep 17 00:00:00 2001 From: Nick Craver Date: Wed, 2 Aug 2023 21:48:49 -0400 Subject: [PATCH 2/2] Add release notes --- docs/Releases.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Releases.md b/docs/Releases.md index f8185323..476e65d6 100644 --- a/docs/Releases.md +++ b/docs/Releases.md @@ -10,6 +10,7 @@ This page tracks major changes included in any update starting with version 4.0. - Support for strict CSP (dynamic inline styles removed) ([#634](https://github.com/MiniProfiler/dotnet/pull/634) - thanks [rwasef1830](https://github.com/rwasef1830)) - **Fixes/Changes**: - Upgraded MongoDB driver, allowing automatic index creation and profiler expiration ([#613](https://github.com/MiniProfiler/dotnet/pull/613) - thanks [IanKemp](https://github.com/IanKemp)) + - Fixed [#652](https://github.com/MiniProfiler/dotnet/issues/652): Respect `PopupDecimalPlaces` in all cases ([#655](https://github.com/MiniProfiler/dotnet/pull/655)) #### Version 4.3.8 - **New**: