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

mol-plugin: tree UI fix

parent 101a33a7
No related branches found
No related tags found
No related merge requests found
...@@ -185,9 +185,9 @@ export class CurrentObject extends PluginUIComponent { ...@@ -185,9 +185,9 @@ export class CurrentObject extends PluginUIComponent {
if (!showActions) return null; if (!showActions) return null;
return cell.status === 'ok' && <> return <>
<UpdateTransformContol state={current.state} transform={transform} /> {(cell.status === 'ok' || cell.status == 'error') && <UpdateTransformContol state={current.state} transform={transform} /> }
<StateObjectActions state={current.state} nodeRef={ref} /> {cell.status === 'ok' && <StateObjectActions state={current.state} nodeRef={ref} />}
</>; </>;
} }
} }
\ No newline at end of file
...@@ -214,8 +214,8 @@ class StateTreeNodeLabel extends PluginUIComponent< ...@@ -214,8 +214,8 @@ class StateTreeNodeLabel extends PluginUIComponent<
label = <><b>[{cell.status}]</b> <span title={name}>{name}</span></>; label = <><b>[{cell.status}]</b> <span title={name}>{name}</span></>;
} else if (cell.status !== 'ok' || !cell.obj) { } else if (cell.status !== 'ok' || !cell.obj) {
const name = n.transformer.definition.display.name; const name = n.transformer.definition.display.name;
const title = `${cell.errorText}` const title = `${cell.errorText}`;
label = <><b>[{cell.status}]</b> <a title={title} href='#' onClick={this.setCurrent}>{name}</a>: <i>{cell.errorText}</i></>; label = <><a title={title} href='#' onClick={this.setCurrent}><b>[{cell.status}]</b> {name}: <i>{cell.errorText}</i> </a></>;
} else { } else {
const obj = cell.obj as PluginStateObject.Any; const obj = cell.obj as PluginStateObject.Any;
const title = `${obj.label} ${obj.description ? obj.description : ''}` const title = `${obj.label} ${obj.description ? obj.description : ''}`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment