Commit ea29a7c9 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added GUI warning for using NOMAD test deployment.

parent 46b0271d
Pipeline #82147 passed with stages
in 21 minutes and 50 seconds
......@@ -11,7 +11,8 @@ window.nomadEnv = {
'version': {
'label': '1.0.0',
'isBeta': false,
'usesBetaData': false,
'isTest': true,
'usesBetaData': true,
'officialUrl': 'https://nomad-lab.eu/prod/rae/gui'
},
'encyclopediaEnabled': true,
......
......@@ -127,7 +127,7 @@ function BetaSnack() {
return ''
}
if (!version.isBeta) {
if (!version.isBeta && !version.isTest) {
return ''
}
......@@ -141,7 +141,7 @@ function BetaSnack() {
<SnackbarContent
className={classes.snack}
message={<span style={{color: 'white'}}>
You are using a beta version of NOMAD ({version.label}). {
You are using a {version.isBeta ? 'beta' : 'test'} version of NOMAD ({version.label}). {
version.usesBetaData ? 'This version is not using the official data. Everything you upload here, might get lost.' : ''
} Click <a style={{color: 'white'}} href={version.officialUrl}>here for the official NOMAD version</a>.
</span>}
......
......@@ -154,7 +154,7 @@ services = NomadConfig(
upload_limit=10,
force_raw_file_decoding=False,
download_scan_size=500,
download_scan_timeout=u'30m',
download_scan_timeout=u'30m'
)
tests = NomadConfig(
......
......@@ -97,6 +97,7 @@ data:
"version": {
"label": "{{ .Values.version.label }}",
"isBeta": {{ .Values.version.isBeta }},
"isTest": {{ .Values.version.isTest }},
"usesBetaData": {{ .Values.version.usesBetaData }},
"officialUrl": "{{ .Values.version.officialUrl }}"
},
......
## Default values for nomad@FAIRDI
version:
label: "1.0.0"
isTest: false
isBeta: false
usesBetaData: false
officialUrl: "https://nomad-lab.eu/prod/rae/gui"
......
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