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
bb27503a
Commit
bb27503a
authored
Jul 22, 2019
by
Markus Scheidgen
Browse files
Merge branch 'v0.4.6-bugfixes' into v0.5.0-markus
parents
ae1d14dc
0edac160
Pipeline
#52255
passed with stages
in 14 minutes and 39 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gui/src/components/LoginLogout.js
View file @
bb27503a
...
...
@@ -41,6 +41,7 @@ class LoginLogout extends React.Component {
super
(
props
)
this
.
handleLogout
=
this
.
handleLogout
.
bind
(
this
)
this
.
handleChange
=
this
.
handleChange
.
bind
(
this
)
this
.
handleKeyPress
=
this
.
handleKeyPress
.
bind
(
this
)
}
state
=
{
...
...
@@ -82,7 +83,7 @@ class LoginLogout extends React.Component {
handleChange
=
name
=>
event
=>
{
this
.
setState
({
[
name
]:
event
.
target
.
value
[
name
]:
event
.
target
.
value
,
failure
:
false
})
}
...
...
@@ -93,6 +94,13 @@ class LoginLogout extends React.Component {
}
}
handleKeyPress
(
ev
)
{
if
(
ev
.
key
===
'
Enter
'
)
{
ev
.
preventDefault
()
this
.
handleLoginDialogClosed
(
true
)
}
}
render
()
{
const
{
classes
,
user
,
variant
,
color
,
isLoggingIn
}
=
this
.
props
const
{
failure
}
=
this
.
state
...
...
@@ -141,6 +149,7 @@ class LoginLogout extends React.Component {
fullWidth
value
=
{
this
.
state
.
userName
}
onChange
=
{
this
.
handleChange
(
'
userName
'
)}
onKeyPress
=
{
this
.
handleKeyPress
}
/
>
<
TextField
autoComplete
=
"
current-password
"
...
...
@@ -152,6 +161,7 @@ class LoginLogout extends React.Component {
fullWidth
value
=
{
this
.
state
.
password
}
onChange
=
{
this
.
handleChange
(
'
password
'
)}
onKeyPress
=
{
this
.
handleKeyPress
}
/
>
<
/FormGroup
>
<
/form
>
...
...
gui/version.sh
View file @
bb27503a
#!/bin/sh
version
=
`
git describe
--tags
`
sed
-i
-e
"s/nomad-gui-version-placeholder/
$version
/g"
package.json
rm
package.json-e
\ No newline at end of file
rm
-f
package.json-e
\ No newline at end of file
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