Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions src/dashboard/Data/Browser/BrowserToolbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,30 @@ const BrowserToolbar = ({
</BrowserMenu>
)}
{onAddRow && <div className={styles.toolbarSeparator} />}
<BrowserMenu setCurrent={setCurrent} title="Settings" icon="gear-solid">
<BrowserMenu title="Info Panel" setCurrent={setCurrent}>
<MenuItem
text={
<span>
{scrollToTop && (
<Icon
name="check"
width={12}
height={12}
fill="#ffffffff"
className="menuCheck"
/>
)}
Scroll to top
</span>
}
onClick={() => {
toggleScrollToTop();
}}
/>
</BrowserMenu>
</BrowserMenu>
<div className={styles.toolbarSeparator} />
<a className={classes.join(' ')} onClick={isPendingEditCloneRows ? null : onRefresh}>
<Icon name="refresh-solid" width={14} height={14} />
<span>Refresh</span>
Expand Down Expand Up @@ -445,30 +469,6 @@ const BrowserToolbar = ({
<MenuItem text={'Cancel all pending rows'} onClick={onCancelPendingEditRows} />
</BrowserMenu>
)}
<div className={styles.toolbarSeparator} />
<BrowserMenu setCurrent={setCurrent} title="Settings" icon="gear-solid">
<BrowserMenu title="Info Panel" setCurrent={setCurrent}>
<MenuItem
text={
<span>
{scrollToTop && (
<Icon
name="check"
width={12}
height={12}
fill="#ffffffff"
className="menuCheck"
/>
)}
Scroll to top
</span>
}
onClick={() => {
toggleScrollToTop();
}}
/>
</BrowserMenu>
</BrowserMenu>
</Toolbar>
);
};
Expand Down
Loading