mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 13:34:54 +00:00
New: Instance name for Page Title
This commit is contained in:
parent
a5e54a6d6e
commit
a8304a904c
3 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@ import AppRoutes from './AppRoutes';
|
|||
|
||||
function App({ store, history }) {
|
||||
return (
|
||||
<DocumentTitle title="Lidarr">
|
||||
<DocumentTitle title={window.Lidarr.instanceName}>
|
||||
<Provider store={store}>
|
||||
<ConnectedRouter history={history}>
|
||||
<PageConnector>
|
||||
|
|
|
@ -14,7 +14,7 @@ function PageContent(props) {
|
|||
|
||||
return (
|
||||
<ErrorBoundary errorComponent={PageContentError}>
|
||||
<DocumentTitle title={title ? `${title} - Lidarr` : 'Lidarr'}>
|
||||
<DocumentTitle title={title ? `${title} - ${window.Lidarr.instanceName}` : window.Lidarr.instanceName}>
|
||||
<div className={className}>
|
||||
{children}
|
||||
</div>
|
||||
|
|
|
@ -49,6 +49,7 @@ private string GetContent()
|
|||
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($" userHash: '{HashUtil.AnonymousToken()}',");
|
||||
|
|
Loading…
Reference in a new issue