Skip to content

Commit

Permalink
Mati feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosampler committed Oct 15, 2024
1 parent 16055ff commit 4284a6c
Showing 1 changed file with 42 additions and 39 deletions.
81 changes: 42 additions & 39 deletions packages/website/src/features/Deploy/QueueFromGitOpsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -918,46 +918,49 @@ export default function QueueFromGitOps() {
</AlertCannon>
)}

{!!buildState.result?.deployerSteps?.length && (
<Box
mt="6"
mb="5"
border="1px solid"
borderColor="gray.600"
p="4"
borderRadius="md"
>
{deployer.queuedTransactions.length === 0 ? (
<VStack>
<Text color="gray.300" mb="4">
Some transactions should be executed outside the safe before
staging. You can execute these now in your browser. By
clicking the button below.
{!!buildState.result?.deployerSteps?.length &&
(buildState.result?.safeSteps.length || 0) > 0 && (
<Box
mt="6"
mb="5"
border="1px solid"
borderColor="gray.600"
p="4"
borderRadius="md"
>
{deployer.queuedTransactions.length === 0 ? (
<VStack>
<Text color="gray.300" mb="4">
Some transactions should be executed outside the safe
before staging. You can execute these now in your browser.
By clicking the button below.
</Text>
<Button
onClick={() =>
deployer.queueTransactions(
buildState.result!.deployerSteps.map(
(s) => s.tx as any
)
)
}
>
Execute Outside Safe Txns
</Button>
</VStack>
) : deployer.executionProgress.length <
deployer.queuedTransactions.length ? (
<Text>
Deploying txns {deployer.executionProgress.length + 1} /{' '}
{deployer.queuedTransactions.length}
</Text>
<Button
onClick={() =>
deployer.queueTransactions(
buildState.result!.deployerSteps.map((s) => s.tx as any)
)
}
>
Execute Outside Safe Txns
</Button>
</VStack>
) : deployer.executionProgress.length <
deployer.queuedTransactions.length ? (
<Text>
Deploying txns {deployer.executionProgress.length + 1} /{' '}
{deployer.queuedTransactions.length}
</Text>
) : (
<Text>
All Transactions Queued Successfully. You may now continue the
safe deployment.
</Text>
)}
</Box>
)}
) : (
<Text>
All Transactions Queued Successfully. You may now continue
the safe deployment.
</Text>
)}
</Box>
)}
{cannonDefInfo?.def && multicallTxn?.data && (
<Box mt="4">
<Heading size="md" mt={5}>
Expand Down

0 comments on commit 4284a6c

Please sign in to comment.