From bbd7f43fc12ae922677cdafe5f0f1c7a018bb7fd Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Mon, 4 Mar 2019 16:19:56 +0100
Subject: [PATCH] mol-plugin: tree UI fix

---
 src/mol-plugin/ui/plugin.tsx     | 6 +++---
 src/mol-plugin/ui/state/tree.tsx | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mol-plugin/ui/plugin.tsx b/src/mol-plugin/ui/plugin.tsx
index f5753b50e..6410c7cd4 100644
--- a/src/mol-plugin/ui/plugin.tsx
+++ b/src/mol-plugin/ui/plugin.tsx
@@ -185,9 +185,9 @@ export class CurrentObject extends PluginUIComponent {
 
         if (!showActions) return null;
 
-        return cell.status === 'ok' && <>
-            <UpdateTransformContol state={current.state} transform={transform} />
-            <StateObjectActions state={current.state} nodeRef={ref} />
+        return <>
+            {(cell.status === 'ok' || cell.status == 'error') && <UpdateTransformContol state={current.state} transform={transform} /> }
+            {cell.status === 'ok' && <StateObjectActions state={current.state} nodeRef={ref} />}
         </>;
     }
 }
\ No newline at end of file
diff --git a/src/mol-plugin/ui/state/tree.tsx b/src/mol-plugin/ui/state/tree.tsx
index c48ee1072..f2c4ac4f8 100644
--- a/src/mol-plugin/ui/state/tree.tsx
+++ b/src/mol-plugin/ui/state/tree.tsx
@@ -214,8 +214,8 @@ class StateTreeNodeLabel extends PluginUIComponent<
             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></>;
+            const title = `${cell.errorText}`;
+            label = <><a title={title} href='#' onClick={this.setCurrent}><b>[{cell.status}]</b> {name}: <i>{cell.errorText}</i> </a></>;
         } else {
             const obj = cell.obj as PluginStateObject.Any;
             const title = `${obj.label} ${obj.description ? obj.description : ''}`
-- 
GitLab