"test/ref_rnn_ops_test.cpp" did not exist on "731f2dbb31624fcbddd07a0998eafd8d469ae839"
Unverified Commit b0d62be8 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

[webui] fix some bugs on v2.1 bug bash (#3400)

parent a9b6fd42
...@@ -59,6 +59,7 @@ class ChangeColumnComponent extends React.Component<ChangeColumnProps, ChangeCol ...@@ -59,6 +59,7 @@ class ChangeColumnComponent extends React.Component<ChangeColumnProps, ChangeCol
const { currentSelected } = this.state; const { currentSelected } = this.state;
const { allColumns, onSelectedChange } = this.props; const { allColumns, onSelectedChange } = this.props;
const selectedColumns = allColumns.map(column => column.key).filter(key => currentSelected.includes(key)); const selectedColumns = allColumns.map(column => column.key).filter(key => currentSelected.includes(key));
localStorage.setItem('columns', JSON.stringify(selectedColumns));
onSelectedChange(selectedColumns); onSelectedChange(selectedColumns);
this.hideDialog(); this.hideDialog();
}; };
......
...@@ -59,20 +59,23 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState> ...@@ -59,20 +59,23 @@ class DefaultPoint extends React.Component<DefaultPointProps, DefaultPointState>
}; };
pointClick = (params: any): void => { 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'); this.props.changeExpandRowIDs(params.data[2], 'chart');
} }
}; };
generateGraphConfig(_maxSequenceId: number): any { generateGraphConfig(_maxSequenceId: number): any {
const { startY, endY } = this.state; const { startY, endY } = this.state;
const { hasBestCurve } = this.props;
return { return {
grid: { grid: {
left: '8%' left: '8%'
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
enterable: true, enterable: hasBestCurve,
confine: true, // confirm always show tooltip box rather than hidden by background confine: true, // confirm always show tooltip box rather than hidden by background
formatter: (data: TooltipForAccuracy): React.ReactNode => { formatter: (data: TooltipForAccuracy): React.ReactNode => {
return ( return (
......
...@@ -101,7 +101,11 @@ class TableList extends React.Component<TableListProps, TableListState> { ...@@ -101,7 +101,11 @@ class TableList extends React.Component<TableListProps, TableListState> {
this.state = { this.state = {
displayedItems: [], 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: [], columns: [],
searchType: 'id', searchType: 'id',
searchText: '', searchText: '',
......
Markdown is supported
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