Skip to content

Commit

Permalink
New: Instance name for Page Title
Browse files Browse the repository at this point in the history
  • Loading branch information
Qstick committed May 14, 2022
1 parent fc55aa4 commit 96d64af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AppRoutes from './AppRoutes';

function App({ store, history }) {
return (
<DocumentTitle title="Prowlarr">
<DocumentTitle title={window.Prowlarr.instanceName}>
<Provider store={store}>
<ConnectedRouter history={history}>
<PageConnector>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/Components/Page/PageContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function PageContent(props) {

return (
<ErrorBoundary errorComponent={PageContentError}>
<DocumentTitle title={title ? `${title} - Prowlarr` : 'Prowlarr'}>
<DocumentTitle title={title ? `${title} - ${window.Prowlarr.instanceName}` : window.Prowlarr.instanceName}>
<div className={className}>
{children}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/Prowlarr.Http/Frontend/InitializeJsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()}',");
Expand Down

0 comments on commit 96d64af

Please sign in to comment.