Skip to content

Commit f052f0b

Browse files
committed
Add location dependancy to data overview
1 parent 88f64a4 commit f052f0b

1 file changed

Lines changed: 20 additions & 12 deletions

File tree

frontend/src/pages/DataOverviewPage.tsx

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,26 @@ export const DataOverviewPage = () => {
5555
const navigate = useNavigate()
5656

5757
const analysisPages = [
58-
{
59-
to: `/${installation.installationCode}/cloe-view`,
60-
label: TranslateText('Data View for Constant Level Oilers'),
61-
description: TranslateText('Analysis performed on images of the constant level oilers'),
62-
source: cloe,
63-
},
64-
{
65-
to: `/${installation.installationCode}/fencilla-view`,
66-
label: TranslateText('Data View for Perimeter Breach Detection'),
67-
description: TranslateText('Analysis performed on images of the perimeter fences'),
68-
source: fenceBreach,
69-
},
58+
...(installation.installationCode?.toUpperCase() === 'NLS'
59+
? [
60+
{
61+
to: `/${installation.installationCode}/cloe-view`,
62+
label: TranslateText('Data View for Constant Level Oilers'),
63+
description: TranslateText('Analysis performed on images of the constant level oilers'),
64+
source: cloe,
65+
},
66+
]
67+
: []),
68+
...(installation.installationCode?.toUpperCase() === 'NLS'
69+
? [
70+
{
71+
to: `/${installation.installationCode}/fencilla-view`,
72+
label: TranslateText('Data View for Perimeter Breach Detection'),
73+
description: TranslateText('Analysis performed on images of the perimeter fences'),
74+
source: fenceBreach,
75+
},
76+
]
77+
: []),
7078
...(installation.installationCode?.toUpperCase() === 'KAA'
7179
? [
7280
{

0 commit comments

Comments
 (0)