From ad6081aec6771868f49bc6cc6f92ede3726f230f Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 12 May 2022 19:06:14 -0500 Subject: [PATCH] New: Instance name for Page Title --- frontend/src/App/App.js | 2 +- frontend/src/Components/Page/PageContent.js | 2 +- src/Sonarr.Http/Frontend/InitializeJsModule.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/App/App.js b/frontend/src/App/App.js index 2baaf9fe9..d8a83b1c0 100644 --- a/frontend/src/App/App.js +++ b/frontend/src/App/App.js @@ -8,7 +8,7 @@ import AppRoutes from './AppRoutes'; function App({ store, history }) { return ( - + diff --git a/frontend/src/Components/Page/PageContent.js b/frontend/src/Components/Page/PageContent.js index 62003c2b0..b1f09484e 100644 --- a/frontend/src/Components/Page/PageContent.js +++ b/frontend/src/Components/Page/PageContent.js @@ -14,7 +14,7 @@ function PageContent(props) { return ( - +
{children}
diff --git a/src/Sonarr.Http/Frontend/InitializeJsModule.cs b/src/Sonarr.Http/Frontend/InitializeJsModule.cs index 4dc2cb231..84bdbca6b 100644 --- a/src/Sonarr.Http/Frontend/InitializeJsModule.cs +++ b/src/Sonarr.Http/Frontend/InitializeJsModule.cs @@ -61,6 +61,7 @@ namespace Sonarr.Http.Frontend builder.AppendLine($" apiKey: '{_apiKey}',"); builder.AppendLine($" release: '{BuildInfo.Release}',"); builder.AppendLine($" version: '{BuildInfo.Version.ToString()}',"); + builder.AppendLine($" instanceName: '{_configFileProvider.InstanceName.ToString()}',"); builder.AppendLine($" branch: '{_configFileProvider.Branch.ToLower()}',"); builder.AppendLine($" analytics: {_analyticsService.IsEnabled.ToString().ToLowerInvariant()},"); builder.AppendLine($" urlBase: '{_urlBase}',");