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