Change workspace icon if it is managed

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-03-18 13:26:54 -04:00
1 parent b066fb3527
commit 4e30bd849e
1 file changed
+1 -1
@@ -50,7 +50,7 @@ export class BottomBar extends React.Component {
return ( return (
<div className="BottomBar flex gaps"> <div className="BottomBar flex gaps">
<div id="current-workspace" data-test-id="current-workspace" className="flex gaps align-center" onClick={() => CommandOverlay.open(<ChooseWorkspace />)}> <div id="current-workspace" data-test-id="current-workspace" className="flex gaps align-center" onClick={() => CommandOverlay.open(<ChooseWorkspace />)}>
<Icon smallest material="layers"/> <Icon smallest material={currentWorkspace.isManaged ? "language" : "computer"}/>
<span className="workspace-name" data-test-id="current-workspace-name">{currentWorkspace.name}</span> <span className="workspace-name" data-test-id="current-workspace-name">{currentWorkspace.name}</span>
</div> </div>
{this.renderRegisteredItems()} {this.renderRegisteredItems()}