Skip to content

Commit

Permalink
Merge pull request #1742 from alliance-genome/SCRUM-4607
Browse files Browse the repository at this point in the history
SCRUM-4607 add sticky header to data loads page
  • Loading branch information
adamgibs authored Nov 25, 2024
2 parents 968bd8f + 0cccde7 commit 9a3624b
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions src/main/cliapp/src/containers/dataLoadsPage/DataLoadsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { SiteContext } from '../layout/SiteContext';
import { LoadingOverlay } from '../../components/LoadingOverlay';
import moment from 'moment-timezone';
import { NumberTemplate } from '../../components/Templates/NumberTemplate';
import { StickyHeader } from '../../components/StickyHeader';
import { Splitter, SplitterPanel } from 'primereact/splitter';

export const DataLoadsComponent = () => {
const { authState } = useOktaAuth();
Expand Down Expand Up @@ -852,20 +854,26 @@ export const DataLoadsComponent = () => {
<>
<Toast ref={toast}></Toast>
<LoadingOverlay isLoading={isLoading} />
<StickyHeader>
<Splitter className="bg-primary-reverse border-none lg:h-5rem" gutterSize={0}>
<SplitterPanel size={1} className="flex justify-content-start py-3">
<Button
label="New Group"
icon="pi pi-plus"
className="p-button-success mr-2"
onClick={handleNewBulkLoadGroupOpen}
/>
<Button
label="New Bulk Load"
icon="pi pi-plus"
className="p-button-success mr-2"
onClick={handleNewBulkLoadOpen}
/>
<Button label="Refresh Data" icon="pi pi-plus" className="p-button-success mr-2" onClick={refresh} />
</SplitterPanel>
</Splitter>
</StickyHeader>
<div className="card">
<Button
label="New Group"
icon="pi pi-plus"
className="p-button-success mr-2"
onClick={handleNewBulkLoadGroupOpen}
/>
<Button
label="New Bulk Load"
icon="pi pi-plus"
className="p-button-success mr-2"
onClick={handleNewBulkLoadOpen}
/>
<Button label="Refresh Data" icon="pi pi-plus" className="p-button-success mr-2" onClick={refresh} />
<Messages ref={errorMessage} />
{errorLoads.length > 0 && (
<div>
Expand Down

0 comments on commit 9a3624b

Please sign in to comment.