Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
b0d62be8
Unverified
Commit
b0d62be8
authored
Mar 02, 2021
by
Lijiaoa
Committed by
GitHub
Mar 02, 2021
Browse files
[webui] fix some bugs on v2.1 bug bash (#3400)
parent
a9b6fd42
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
ts/webui/src/components/modals/ChangeColumnComponent.tsx
ts/webui/src/components/modals/ChangeColumnComponent.tsx
+1
-0
ts/webui/src/components/trial-detail/DefaultMetricPoint.tsx
ts/webui/src/components/trial-detail/DefaultMetricPoint.tsx
+5
-2
ts/webui/src/components/trial-detail/TableList.tsx
ts/webui/src/components/trial-detail/TableList.tsx
+5
-1
No files found.
ts/webui/src/components/modals/ChangeColumnComponent.tsx
View file @
b0d62be8
...
...
@@ -59,6 +59,7 @@ class ChangeColumnComponent extends React.Component<ChangeColumnProps, ChangeCol
const
{
currentSelected
}
=
this
.
state
;
const
{
allColumns
,
onSelectedChange
}
=
this
.
props
;
const
selectedColumns
=
allColumns
.
map
(
column
=>
column
.
key
).
filter
(
key
=>
currentSelected
.
includes
(
key
));
localStorage
.
setItem
(
'
columns
'
,
JSON
.
stringify
(
selectedColumns
));
onSelectedChange
(
selectedColumns
);
this
.
hideDialog
();
};
...
...
ts/webui/src/components/trial-detail/DefaultMetricPoint.tsx
View file @
b0d62be8
...
...
@@ -59,20 +59,23 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState>
};
pointClick
=
(
params
:
any
):
void
=>
{
if
(
window
.
location
.
pathname
===
'
/oview
'
)
{
// [hasBestCurve: true]: is detail page, otherwise, is overview page
const
{
hasBestCurve
}
=
this
.
props
;
if
(
!
hasBestCurve
)
{
this
.
props
.
changeExpandRowIDs
(
params
.
data
[
2
],
'
chart
'
);
}
};
generateGraphConfig
(
_maxSequenceId
:
number
):
any
{
const
{
startY
,
endY
}
=
this
.
state
;
const
{
hasBestCurve
}
=
this
.
props
;
return
{
grid
:
{
left
:
'
8%
'
},
tooltip
:
{
trigger
:
'
item
'
,
enterable
:
tru
e
,
enterable
:
hasBestCurv
e
,
confine
:
true
,
// confirm always show tooltip box rather than hidden by background
formatter
:
(
data
:
TooltipForAccuracy
):
React
.
ReactNode
=>
{
return
(
...
...
ts/webui/src/components/trial-detail/TableList.tsx
View file @
b0d62be8
...
...
@@ -101,7 +101,11 @@ class TableList extends React.Component<TableListProps, TableListState> {
this
.
state
=
{
displayedItems
:
[],
displayedColumns
:
defaultDisplayedColumns
,
displayedColumns
:
localStorage
.
getItem
(
'
columns
'
)
!==
null
?
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
JSON
.
parse
(
localStorage
.
getItem
(
'
columns
'
)
!
)
:
defaultDisplayedColumns
,
columns
:
[],
searchType
:
'
id
'
,
searchText
:
''
,
...
...
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