Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
345878ef
Commit
345878ef
authored
Jan 27, 2019
by
Markus Scheidgen
Browse files
Minor changes.
parent
fdd546a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
gui/src/components/Upload.js
View file @
345878ef
...
...
@@ -24,7 +24,9 @@ class Upload extends React.Component {
}
static
styles
=
theme
=>
({
root
:
{},
root
:
{
marginBottom
:
theme
.
spacing
.
unit
},
heading
:
{
fontSize
:
theme
.
typography
.
pxToRem
(
15
),
fontWeight
:
theme
.
typography
.
fontWeightRegular
...
...
@@ -40,10 +42,18 @@ class Upload extends React.Component {
detailsContent
:
{
margin
:
theme
.
spacing
.
unit
*
3
},
titleContainer
:
{
flex
:
'
0 0 auto
'
,
marginRight
:
theme
.
spacing
.
unit
*
2
,
width
:
350
,
overflowX
:
'
hidden
'
},
title
:
{
flexBasis
:
'
20%
'
,
flexShrink
:
0
,
marginRight
:
theme
.
spacing
.
unit
*
2
textOverflow
:
'
ellipsis
'
,
whiteSpace
:
'
nowrap
'
,
overflowX
:
'
inherit
'
,
direction
:
'
rtl
'
,
textAlign
:
'
left
'
},
checkbox
:
{
marginRight
:
theme
.
spacing
.
unit
*
2
...
...
@@ -160,8 +170,8 @@ class Upload extends React.Component {
const
{
name
,
create_time
}
=
this
.
state
.
upload
return
(
<
div
className
=
{
classes
.
title
}
>
<
Typography
variant
=
"
title
"
>
<
div
className
=
{
classes
.
title
Container
}
>
<
Typography
variant
=
"
title
"
className
=
{
classes
.
title
}
>
{
name
||
new
Date
(
Date
.
parse
(
create_time
)).
toLocaleString
()}
<
/Typography
>
{
name
...
...
@@ -451,7 +461,7 @@ class Upload extends React.Component {
if
(
this
.
state
.
upload
)
{
return
(
<
div
ref
=
{
this
.
logPopperAnchor
}
>
<
div
className
=
{
classes
.
root
}
>
{
openCalc
?
<
CalcDialog
raiseError
=
{
raiseError
}
{...
openCalc
}
onClose
=
{()
=>
this
.
setState
({
openCalc
:
null
})}
/> : ''
}
<
ExpansionPanel
>
...
...
nomad/client/misc.py
View file @
345878ef
...
...
@@ -19,11 +19,12 @@ import click
from
nomad
import
config
from
.main
import
cli
,
create_client
from
.main
import
cli
@
cli
.
command
(
help
=
'Attempts to reset the nomad.'
)
def
reset
():
from
.main
import
create_client
create_client
().
admin
.
exec_reset_command
().
response
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment