refactor(ui): route CheckpointsTable via IdentitySection.checkpointsSlot
This commit is contained in:
@@ -469,9 +469,8 @@ export default function AppDeploymentPage() {
|
|||||||
stagedJar={stagedJar}
|
stagedJar={stagedJar}
|
||||||
onStagedJarChange={setStagedJar}
|
onStagedJarChange={setStagedJar}
|
||||||
deploying={deploymentInProgress}
|
deploying={deploymentInProgress}
|
||||||
>
|
checkpointsSlot={
|
||||||
{app && (
|
app ? (
|
||||||
<>
|
|
||||||
<CheckpointsTable
|
<CheckpointsTable
|
||||||
deployments={deployments}
|
deployments={deployments}
|
||||||
versions={versions}
|
versions={versions}
|
||||||
@@ -479,22 +478,23 @@ export default function AppDeploymentPage() {
|
|||||||
jarRetentionCount={jarRetentionCount}
|
jarRetentionCount={jarRetentionCount}
|
||||||
onSelect={setSelectedCheckpointId}
|
onSelect={setSelectedCheckpointId}
|
||||||
/>
|
/>
|
||||||
{selectedDep && (
|
) : undefined
|
||||||
<CheckpointDetailDrawer
|
}
|
||||||
open
|
>
|
||||||
onClose={() => setSelectedCheckpointId(null)}
|
{app && selectedDep && (
|
||||||
deployment={selectedDep}
|
<CheckpointDetailDrawer
|
||||||
version={selectedDepVersion}
|
open
|
||||||
appSlug={app.slug}
|
onClose={() => setSelectedCheckpointId(null)}
|
||||||
envSlug={selectedEnv ?? ''}
|
deployment={selectedDep}
|
||||||
currentForm={form}
|
version={selectedDepVersion}
|
||||||
onRestore={(deploymentId) => {
|
appSlug={app.slug}
|
||||||
handleRestore(deploymentId);
|
envSlug={selectedEnv ?? ''}
|
||||||
setSelectedCheckpointId(null);
|
currentForm={form}
|
||||||
}}
|
onRestore={(deploymentId) => {
|
||||||
/>
|
handleRestore(deploymentId);
|
||||||
)}
|
setSelectedCheckpointId(null);
|
||||||
</>
|
}}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</IdentitySection>
|
</IdentitySection>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user