Skip to content

Commit 25ceb7e

Browse files
NinoZXmtrezza
authored andcommitted
Reposition Browse as User menu item
1 parent 6609d9b commit 25ceb7e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/dashboard/Data/Browser/BrowserToolbar.react.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -247,27 +247,6 @@ let BrowserToolbar = ({
247247
blacklistedFilters={onAddRow ? [] : ['unique']}
248248
/>
249249
{onAddRow && <div className={styles.toolbarSeparator} />}
250-
{onAddRow && (
251-
<LoginDialog
252-
ref={loginDialogRef}
253-
currentUser={currentUser}
254-
login={login}
255-
logout={logout}
256-
/>
257-
)}
258-
{onAddRow && (
259-
<BrowserMenu
260-
setCurrent={setCurrent}
261-
title={currentUser ? 'Browsing' : 'Browse'}
262-
icon="users-solid"
263-
active={!!currentUser}
264-
>
265-
<MenuItem text={currentUser ? 'Switch User' : 'As User'} onClick={showLogin} />
266-
{currentUser ? <MenuItem text={<span>Use Master Key <Toggle type={Toggle.Types.HIDE_LABELS} value={useMasterKey} onChange={toggleMasterKeyUsage} switchNoMargin={true} additionalStyles={{ display: 'inline', lineHeight: 0, margin: 0, paddingLeft: 5 }} /></span>} onClick={toggleMasterKeyUsage} /> : <noscript />}
267-
{currentUser ? <MenuItem text={<span>Stop browsing (<b>{currentUser.get('username')}</b>)</span>} onClick={logout} /> : <noscript />}
268-
</BrowserMenu>
269-
)}
270-
{onAddRow && <div className={styles.toolbarSeparator} />}
271250
{perms && enableSecurityDialog ? (
272251
<SecurityDialog
273252
ref={clpDialogRef}

0 commit comments

Comments
 (0)