Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
de1ae178
Unverified
Commit
de1ae178
authored
Feb 17, 2020
by
Lijiao
Committed by
GitHub
Feb 17, 2020
Browse files
fix some bugs in v1.4 bug bash (#2066)
parent
b7045b19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/webui/src/components/NavCon.tsx
src/webui/src/components/NavCon.tsx
+1
-1
src/webui/src/components/TrialsDetail.tsx
src/webui/src/components/TrialsDetail.tsx
+2
-2
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+3
-3
No files found.
src/webui/src/components/NavCon.tsx
View file @
de1ae178
...
...
@@ -172,7 +172,7 @@ class NavCon extends React.Component<NavProps, NavState> {
/>
<
CommandBarButton
iconProps
=
{
infoIconAbout
}
text
=
"
a
bout"
text
=
"
A
bout"
menuProps
=
{
aboutProps
}
/>
</
Stack
>
...
...
src/webui/src/components/TrialsDetail.tsx
View file @
de1ae178
...
...
@@ -56,7 +56,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
return
;
}
switch
(
this
.
state
.
searchType
)
{
case
'
i
d
'
:
case
'
I
d
'
:
filter
=
(
trial
):
boolean
=>
trial
.
info
.
id
.
toUpperCase
().
includes
(
targetValue
.
toUpperCase
());
break
;
case
'
Trial No.
'
:
...
...
@@ -65,7 +65,7 @@ class TrialsDetail extends React.Component<TrialsDetailProps, TrialDetailState>
case
'
Status
'
:
filter
=
(
trial
):
boolean
=>
trial
.
info
.
status
.
toUpperCase
().
includes
(
targetValue
.
toUpperCase
());
break
;
case
'
p
arameters
'
:
case
'
P
arameters
'
:
// TODO: support filters like `x: 2` (instead of `"x": 2`)
filter
=
(
trial
):
boolean
=>
JSON
.
stringify
(
trial
.
info
.
hyperParameters
,
null
,
4
).
includes
(
targetValue
);
break
;
...
...
src/webui/src/components/trial-detail/TableList.tsx
View file @
de1ae178
...
...
@@ -128,7 +128,7 @@ class TableList extends React.Component<TableListProps, TableListState> {
name
:
'
Default metric
'
,
className
:
'
leftTitle
'
,
key
:
'
accuracy
'
,
fieldName
:
'
a
ccuracy
'
,
fieldName
:
'
latestA
ccuracy
'
,
minWidth
:
200
,
maxWidth
:
300
,
isResizable
:
true
,
...
...
@@ -534,8 +534,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
}
UNSAFE_componentWillReceiveProps
(
nextProps
:
TableListProps
):
void
{
const
{
columnList
}
=
nextProps
;
this
.
setState
({
tableColumns
:
this
.
initTableColumnList
(
columnList
)
});
const
{
columnList
,
tableSource
}
=
nextProps
;
this
.
setState
({
tableSourceForSort
:
tableSource
,
tableColumns
:
this
.
initTableColumnList
(
columnList
)
});
}
render
():
React
.
ReactNode
{
...
...
Write
Preview
Markdown
is supported
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