mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 14:39:44 +08:00
Expand dashboard by default (#6505)
This commit is contained in:
committed by
Philipp Moritz
parent
74b2e871b7
commit
ce1c9a87a7
@@ -146,6 +146,7 @@ class NodeInfo extends React.Component<
|
||||
node={client}
|
||||
logCounts={logCounts[client.ip]}
|
||||
errorCounts={errorCounts[client.ip]}
|
||||
initialExpanded={nodeInfo.clients.length <= 4}
|
||||
/>
|
||||
))}
|
||||
<TotalRow
|
||||
|
||||
@@ -51,6 +51,7 @@ interface Props {
|
||||
perWorker: { [pid: string]: number };
|
||||
total: number;
|
||||
};
|
||||
initialExpanded: boolean;
|
||||
}
|
||||
|
||||
interface State {
|
||||
@@ -62,7 +63,7 @@ class NodeRowGroup extends React.Component<
|
||||
State
|
||||
> {
|
||||
state: State = {
|
||||
expanded: false
|
||||
expanded: this.props.initialExpanded
|
||||
};
|
||||
|
||||
toggleExpand = () => {
|
||||
|
||||
Reference in New Issue
Block a user