Skip to content

Commit

Permalink
fix button sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Jan 27, 2025
1 parent 3510fc2 commit 77ec401
Showing 1 changed file with 46 additions and 35 deletions.
81 changes: 46 additions & 35 deletions src/pages/cipp/integrations/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,51 +120,62 @@ const Page = () => {
{extension.alertText}
</Alert>
)}
<Stack direction="row" spacing={2} sx={{ mb: 2 }}>
<Stack
direction="row"
spacing={2}
sx={{ mb: 2, display: "flex", alignItems: "center" }}
>
{extension?.hideTestButton !== true && (
<Button
variant="contained"
color="primary"
onClick={() => handleIntegrationTest()}
disabled={actionTestResults?.isLoading}
>
<SvgIcon fontSize="small" style={{ marginRight: "8" }}>
<BeakerIcon />
</SvgIcon>
Test
</Button>
<Box>
<Button
variant="contained"
color="primary"
onClick={() => handleIntegrationTest()}
disabled={actionTestResults?.isLoading}
>
<SvgIcon fontSize="small" style={{ marginRight: "8" }}>
<BeakerIcon />
</SvgIcon>
Test
</Button>
</Box>
)}
{extension?.forceSyncButton && (
<Button
variant="contained"
color="primary"
onClick={() => handleIntegrationSync()}
disabled={actionSyncResults.isLoading}
>
<SvgIcon fontSize="small" style={{ marginRight: "8" }}>
<ArrowPathIcon />
</SvgIcon>
Force Sync
</Button>
<Box>
<Button
variant="contained"
color="primary"
onClick={() => handleIntegrationSync()}
disabled={actionSyncResults.isLoading}
>
<SvgIcon fontSize="small" style={{ marginRight: "8" }}>
<ArrowPathIcon />
</SvgIcon>
Force Sync
</Button>
</Box>
)}
{extension?.links && (
<>
{extension.links.map((link, index) => (
<Button
href={link.url}
target="_blank"
rel="noreferrer"
color="inherit"
key={index}
>
<SvgIcon fontSize="small" style={{ marginRight: "8" }}>
<ArrowTopRightOnSquareIcon />
</SvgIcon>
{link.name}
</Button>
<Box>
<Button
href={link.url}
target="_blank"
rel="noreferrer"
color="inherit"
key={index}
>
<SvgIcon fontSize="small" style={{ marginRight: "8" }}>
<ArrowTopRightOnSquareIcon />
</SvgIcon>
{link.name}
</Button>
</Box>
))}
</>
)}

<CippApiResults apiObject={actionTestResults} />
<CippApiResults apiObject={actionSyncResults} />
</Stack>
Expand Down

0 comments on commit 77ec401

Please sign in to comment.