From fbe253135bd3ced1658a55dcf4b9c17a584227a2 Mon Sep 17 00:00:00 2001 From: MytsV Date: Thu, 17 Oct 2024 17:55:31 +0300 Subject: [PATCH] Make the experiment icon in the navigation bar lead to PROJECT_URL from environmental variables --- src/app/(rucio)/rucio-app-layout.tsx | 4 ++-- src/component-library/pages/legacy/Layout/Layout.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/(rucio)/rucio-app-layout.tsx b/src/app/(rucio)/rucio-app-layout.tsx index 7fc5c97a4..29e831872 100644 --- a/src/app/(rucio)/rucio-app-layout.tsx +++ b/src/app/(rucio)/rucio-app-layout.tsx @@ -39,8 +39,8 @@ export const RucioAppLayout = (props: QueryContextLayoutProps) => { siteHeaderViewModel.availableAccounts?.map((user: User) => { return user.rucioAccount; }) ?? [], - rucioProjectLink: 'rucio.cern.ch', - experimentProjectLink: 'atlas.cern', + rucioProjectLink: 'https://rucio.cern.ch', + experimentProjectLink: process.env.PROJECT_URL, }} > {props.children} diff --git a/src/component-library/pages/legacy/Layout/Layout.tsx b/src/component-library/pages/legacy/Layout/Layout.tsx index 4a102140c..6a7bfcdb1 100644 --- a/src/component-library/pages/legacy/Layout/Layout.tsx +++ b/src/component-library/pages/legacy/Layout/Layout.tsx @@ -15,7 +15,7 @@ export interface LayoutViewModel { accountActive: string; accountsPossible: string[]; rucioProjectLink: string; - experimentProjectLink: string; + experimentProjectLink?: string; } export const Layout = (props: { children: React.ReactNode; LVM: LayoutViewModel }) => { @@ -155,10 +155,10 @@ export const Layout = (props: { children: React.ReactNode; LVM: LayoutViewModel - + Rucio Logo - + Experiment Logo