mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Fix: no organization name visible in single workspace (#5256)
This commit is contained in:
parent
e091e5c662
commit
84e603124d
1 changed files with 7 additions and 1 deletions
|
|
@ -2,17 +2,23 @@ import React from 'react';
|
|||
import cx from 'classnames';
|
||||
import Breadcrumbs from '../Breadcrumbs';
|
||||
import { OrganizationList } from '@/_components/OrganizationManager/List';
|
||||
import { authenticationService } from '@/_services';
|
||||
|
||||
function Header() {
|
||||
const currentVersion = localStorage.getItem('currentVersion');
|
||||
const darkMode = localStorage.getItem('darkMode') === 'true';
|
||||
const isSingleOrganization = window.public_config?.DISABLE_MULTI_WORKSPACE === 'true';
|
||||
const { organization } = authenticationService.currentUserValue;
|
||||
|
||||
return (
|
||||
<header className="layout-header">
|
||||
<div className="row w-100 gx-0">
|
||||
<div className="organization-selector col border-end border-bottom">
|
||||
{!isSingleOrganization && <OrganizationList />}
|
||||
{isSingleOrganization ? (
|
||||
<span className="d-flex align-items-center h-100">{organization}</span>
|
||||
) : (
|
||||
<OrganizationList />
|
||||
)}
|
||||
</div>
|
||||
<div className="col border-bottom m-auto" style={{ padding: 13.5 }}>
|
||||
<div className="d-flex justify-content-sm-between">
|
||||
|
|
|
|||
Loading…
Reference in a new issue