mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00
Expand dashboard by default (#6505)
This commit is contained in:
parent
74b2e871b7
commit
ce1c9a87a7
2 changed files with 3 additions and 1 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue