Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/AppNavBar/AppNavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import { toggleSortOrder } from "features/searchPageParamsReducer";
import { theme } from "src/config/theme";
import { useOnPage } from "src/hooks/onPage";
import { useEnhancedSearchParams } from "src/hooks/useEnhancedSearchParams";
import customization from "src/config/customization";

const getFieldCount = (searchParams) => {
let fieldCount = 0;
Expand Down Expand Up @@ -205,7 +206,7 @@ const AppNavBar = ({ advancedSearchOpen, setAdvancedSearchOpen }) => {
fontSize="1.3rem"
component="span"
>
ESS Logbook
{customization.logbookTitle}
</Typography>
</Button>
<nav aria-label="user menu">
Expand Down
4 changes: 3 additions & 1 deletion src/config/customization.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ let customization = {
*/
WEBSOCKET_BASE_URL: import.meta.env.VITE_APP_WEBSOCKET_BASE_URL, // e.g. ws://localhost:8080/Olog/web-socket
SUPPORT_HREF: import.meta.env.VITE_APP_SUPPORT_HREF,
VERSION: import.meta.env.VITE_APP_VERSION ?? packageInfo.version
VERSION: import.meta.env.VITE_APP_VERSION ?? packageInfo.version,

logbookTitle: import.meta.env.VITE_APP_LOGBOOK_TITLE ?? "ESS Logbook"
};

export default customization;