Skip to content

Commit 19c4586

Browse files
committed
Merge branch 'hotfix-ce-ui-snapshot-deletion' into 'dle-4-0'
fix(ui): Fix snapshot delete issues (UI side) See merge request postgres-ai/database-lab!1000
2 parents 32b5284 + 3eef87b commit 19c4586

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ui/packages/ce/src/App/Instance/Page/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { createBranch } from 'api/branches/createBranch'
2121
import { getBranches } from 'api/branches/getBranches'
2222
import { getSnapshotList } from 'api/branches/getSnapshotList'
2323
import { deleteBranch } from 'api/branches/deleteBranch'
24+
import { destroySnapshot } from 'api/snapshots/destroySnapshot'
2425

2526
export const Page = ({ renderCurrentTab }: { renderCurrentTab?: number }) => {
2627
const routes = {
@@ -56,6 +57,7 @@ export const Page = ({ renderCurrentTab }: { renderCurrentTab?: number }) => {
5657
getBranches,
5758
getSnapshotList,
5859
deleteBranch,
60+
destroySnapshot
5961
}
6062

6163
const elements = {

ui/packages/ce/src/App/Instance/Snapshots/Snapshot/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const Snapshot = () => {
4444
instanceId={''}
4545
snapshotId={snapshotId}
4646
routes={{
47+
snapshots: () => ROUTES.INSTANCE.SNAPSHOTS.SNAPSHOTS.path,
4748
snapshot: () => ROUTES.INSTANCE.SNAPSHOTS.SNAPSHOTS.path,
4849
branch: (branchName: string) =>
4950
ROUTES.INSTANCE.BRANCHES.BRANCH.createPath(branchName),

0 commit comments

Comments
 (0)