Skip to content
Snippets Groups Projects
Commit b45f9d21 authored by David Sehnal's avatar David Sehnal
Browse files

mol-plugin: state tree UI tweaks

parent 42b240f2
No related branches found
No related tags found
No related merge requests found
......@@ -161,10 +161,13 @@ class StateTreeNodeLabel extends PluginComponent<{ nodeRef: string, state: State
let label: any;
if (cell.status !== 'ok' || !cell.obj) {
if (cell.status === 'pending' || cell.status === 'processing') {
const name = n.transformer.definition.display.name;
label = <><b>[{cell.status}]</b> <span title={name}>{name}</span></>;
} else if (cell.status !== 'ok' || !cell.obj) {
const name = n.transformer.definition.display.name;
const title = `${cell.errorText}`
label = <><b>{cell.status}</b> <a title={title} href='#' onClick={this.setCurrent}>{name}</a>: <i>{cell.errorText}</i></>;
label = <><b>[{cell.status}]</b> <a title={title} href='#' onClick={this.setCurrent}>{name}</a>: <i>{cell.errorText}</i></>;
} else {
const obj = cell.obj as PluginStateObject.Any;
const title = `${obj.label} ${obj.description ? obj.description : ''}`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment