ceval: Show maxDepth as max(depth, maxDepth)
parent
9d7d5fea14
commit
ce183f89f4
|
@ -29,12 +29,10 @@ function localEvalInfo(ctrl: ParentCtrl, evs: NodeEvals): Array<VNode | string>
|
|||
];
|
||||
}
|
||||
|
||||
const depth = evs.client.depth || 0;
|
||||
const t: Array<VNode | string> = evs.client.cloud
|
||||
? [
|
||||
trans('depthX', evs.client.depth || 0),
|
||||
h('span.cloud', { attrs: { title: trans.noarg('cloudAnalysis') } }, 'Cloud'),
|
||||
]
|
||||
: [trans('depthX', (evs.client.depth || 0) + '/' + evs.client.maxDepth)];
|
||||
? [trans('depthX', depth), h('span.cloud', { attrs: { title: trans.noarg('cloudAnalysis') } }, 'Cloud')]
|
||||
: [trans('depthX', depth + '/' + Math.max(depth, evs.client.maxDepth))];
|
||||
if (ceval.canGoDeeper())
|
||||
t.push(
|
||||
h('a.deeper', {
|
||||
|
|
Loading…
Reference in New Issue