Commit 4e4a1d40 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Disabled some GUI features for OASIS case.

parent 1fbed181
Pipeline #80511 passed with stages
in 32 minutes and 10 seconds
......@@ -8,10 +8,11 @@ window.nomadEnv = {
'matomoUrl': 'https://nomad-lab.eu/fairdi/stat',
'matomoSiteId': '2',
'version': {
"label": "0.8.6",
"isBeta": false,
"usesBetaData": false,
"officialUrl": "https://nomad-lab.eu/prod/rae/gui"
'label': '0.8.6',
'isBeta': false,
'usesBetaData': false,
'officialUrl': 'https://nomad-lab.eu/prod/rae/gui'
},
'encyclopediaEnabled': true
'encyclopediaEnabled': true,
'oasis': false
}
......@@ -25,7 +25,7 @@ import { ErrorSnacks, withErrors } from './errors'
import { help as entryHelp, default as EntryPage } from './entry/EntryPage'
import About from './About'
import LoginLogout from './LoginLogout'
import { guiBase, consent, nomadTheme, appBase, version } from '../config'
import { guiBase, consent, nomadTheme, appBase, version, oasis } from '../config'
import packageJson from '../../package.json'
import {help as uploadHelp, default as UploadPage} from './uploads/UploadPage'
import ResolvePID from './entry/ResolvePID'
......@@ -278,12 +278,12 @@ function MainMenu() {
tooltip="Manage your data"
icon={<UserDataIcon/>}
/>
<MainMenuItem
{!oasis && <MainMenuItem
title="Analytics"
path="/analytics"
tooltip="NOMAD's analytics (AI) toolkit tutorial jupyter notebooks"
icon={<AnalyticsIcon/>}
/>
/>}
<MainMenuItem
title="Metainfo"
path="/metainfo"
......
......@@ -15,6 +15,7 @@ import DownloadButton from '../DownloadButton'
import ClipboardIcon from '@material-ui/icons/Assignment'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import ConfirmDialog from '../uploads/ConfirmDialog'
import { oasis } from '../../config'
class DOIUnstyled extends React.Component {
static propTypes = {
......@@ -150,7 +151,7 @@ class DatasetActionsUnstyled extends React.Component {
example={dataset.example} query={query}
total={dataset.total} onEditComplete={this.handleEdit}
/>}
{editable && canAssignDOI && <Tooltip title="Assign a DOI to this dataset.">
{!oasis && editable && canAssignDOI && <Tooltip title="Assign a DOI to this dataset.">
<IconButton onClick={() => this.setState({confirmDoi: true})}>
<DOIIcon />
</IconButton>
......
......@@ -15,6 +15,7 @@ export const keycloakClientId = window.nomadEnv.keycloakClientId
export const debug = window.nomadEnv.debug || false
export const matomoEnabled = window.nomadEnv.matomoEnabled || false
export const encyclopediaEnabled = window.nomadEnv.encyclopediaEnabled || false
export const oasis = window.nomadEnv.oasis || false
export const email = 'support@nomad-lab.eu'
export const maxLogsToShow = 50
......
......@@ -212,7 +212,8 @@ window.nomadEnv = {
'keycloakBase': 'https://nomad-lab.eu/fairdi/keycloak/auth/',
'keycloakRealm': 'fairdi_nomad_prod',
'keycloakClientId': 'nomad_public',
'debug': false
'debug': false,
'oasis': true
};
```
......
......@@ -5,5 +5,6 @@ window.nomadEnv = {
'keycloakClientId': 'nomad_public',
'debug': false,
'matomoEnabled': false,
'encyclopediaEnabled': false
'encyclopediaEnabled': false,
'oasis': true
};
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment