ceval: Show maxDepth as max(depth, maxDepth)

fix-analysability
Benedikt Werner 2021-08-28 10:51:37 +02:00
parent 9d7d5fea14
commit ce183f89f4
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 3 additions and 5 deletions

View File

@ -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', {