Skip to content

Commit

Permalink
fixed pagination & cleanUp
Browse files Browse the repository at this point in the history
  • Loading branch information
adityadeshlahre committed Jun 19, 2024
1 parent a535aad commit 676ddd3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,65 +327,6 @@ function OrganizationManagament() {
type="type2"
/>
<br />
<Grid fullWidth={true}>
<Column lg={16} md={8} sm={4}>
<Section>
<Button
onClick={() => {
if (selectedRowIds.length === 1) {
const url = `/MasterListsPage#organizationEdit?ID=${selectedRowIds[0]}`;
window.location.href = url;
}
}}
disabled={modifyButton}
type="button"
>
<FormattedMessage id="admin.page.configuration.formEntryConfigMenu.button.modify" />
</Button>{" "}
<Button
onClick={deleteDeactivateOrganizationManagament}
disabled={deactivateButton}
type="button"
>
<FormattedMessage id="admin.page.configuration.formEntryConfigMenu.button.deactivate" />
</Button>{" "}
<Button
onClick={() => {
window.location.href =
"/MasterListsPage#organizationEdit?ID=0";
}}
type="button"
>
<FormattedMessage id="admin.page.configuration.formEntryConfigMenu.button.add" />
</Button>
</Section>
<br />
<Section>
<h4>
<FormattedMessage id="showing" /> {fromRecordCount} -{" "}
{toRecordCount} <FormattedMessage id="of" /> {totalRecordCount}{" "}
</h4>
<Button
hasIconOnly={true}
disabled={parseInt(fromRecordCount) <= 1}
onClick={handlePreviousPage}
renderIcon={ArrowLeft}
iconDescription={intl.formatMessage({
id: "organization.previous",
})}
/>{" "}
<Button
hasIconOnly={true}
renderIcon={ArrowRight}
onClick={handleNextPage}
disabled={parseInt(toRecordCount) >= parseInt(totalRecordCount)}
iconDescription={intl.formatMessage({
id: "organization.next",
})}
/>
</Section>
</Column>
</Grid>
<div className="orderLegendBody">
<Grid>
<Column lg={16} md={8} sm={4}>
Expand Down
64 changes: 0 additions & 64 deletions frontend/src/components/admin/ProviderMenu/ProviderMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,70 +375,6 @@ function ProviderMenu() {
type="type1"
/>
<br />
<Grid fullWidth={true}>
<Column lg={16} md={8} sm={4}>
<Section
style={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<div>
<Button
onClick={() => openUpdateModal(selectedRowIds[0])}
disabled={selectedRowIds.length !== 1}
>
<FormattedMessage id="admin.page.configuration.formEntryConfigMenu.button.modify" />
</Button>{" "}
<Button
disabled={deactivateButton}
onClick={() => {
deleteDeactivateProvider;
}}
type="button"
>
{" "}
<FormattedMessage id="admin.page.configuration.formEntryConfigMenu.button.deactivate" />
</Button>{" "}
<Button onClick={openAddModal}>
{" "}
<FormattedMessage id="admin.page.configuration.formEntryConfigMenu.button.add" />
</Button>
</div>
<div style={{ display: "flex", alignItems: "center" }}>
<h4 style={{ marginRight: "10px" }}>
<FormattedMessage id="showing" /> {fromRecordCount} -{" "}
{toRecordCount} <FormattedMessage id="of" />{" "}
{totalRecordCount}{" "}
</h4>
<Button
style={{ marginLeft: "10px" }}
hasIconOnly={true}
disabled={parseInt(fromRecordCount) <= 1}
onClick={handlePreviousPage}
renderIcon={ArrowLeft}
iconDescription={intl.formatMessage({
id: "organization.previous",
})}
/>{" "}
<Button
style={{ marginLeft: "10px" }}
hasIconOnly={true}
renderIcon={ArrowRight}
onClick={handleNextPage}
disabled={
parseInt(toRecordCount) >= parseInt(totalRecordCount)
}
iconDescription={intl.formatMessage({
id: "organization.next",
})}
/>
</div>
</Section>
</Column>
</Grid>

<Modal
open={isAddModalOpen}
modalHeading="Add Provider"
Expand Down

0 comments on commit 676ddd3

Please sign in to comment.