diff --git a/src/webui/src/components/overview/SuccessTable.tsx b/src/webui/src/components/overview/SuccessTable.tsx index 506abb7f81..9de6e099ec 100644 --- a/src/webui/src/components/overview/SuccessTable.tsx +++ b/src/webui/src/components/overview/SuccessTable.tsx @@ -4,6 +4,7 @@ import DefaultMetric from '../public-child/DefaultMetric'; import Details from './Details'; import { convertDuration } from '../../static/function'; import { TRIALS } from '../../static/datamodel'; +import { DETAILTABS } from '../stateless-component/NNItabs'; import '../../static/style/succTable.scss'; import '../../static/style/openRow.scss'; @@ -55,6 +56,13 @@ class SuccessTable extends React.Component return items.slice(0).sort((a: T, b: T) => ((isSortedDescending ? a[key] < b[key] : a[key] > b[key]) ? 1 : -1)); } + tooltipStr = ( +
+

The experiment is running, please wait for the final metric patiently.

+
You could also find status of trial job with {DETAILTABS} button.
+
+ ); + columns = [ { name: 'Trial No.', @@ -125,9 +133,10 @@ class SuccessTable extends React.Component render(): React.ReactNode { const { columns, source } = this.state; + const isNoneData = (source.length === 0) ? true : false; + return (
- {/* TODO: [style] lineHeight question */} compact={true} onRenderRow={this.onRenderRow} selectionMode={0} // close selector function + className="succTable" /> + {isNoneData &&
{this.tooltipStr}
}
); } diff --git a/src/webui/src/static/style/succTable.scss b/src/webui/src/static/style/succTable.scss index 014f98acc1..3e2dbdfa86 100644 --- a/src/webui/src/static/style/succTable.scss +++ b/src/webui/src/static/style/succTable.scss @@ -1,4 +1,17 @@ #succTable{ height: 404px; overflow-y: scroll; + position: relative; + .succTable-tooltip{ + position: absolute; + top: 40%; + left: 17%; + .link{ + margin-left: 15px; + a{ + font-weight: 500; + color: blue; + } + } + } } \ No newline at end of file