Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit 8232667

Browse files
jobelenusjhelwig
authored andcommitted
front end uses new endpoint name, toggles on toDelete not changeStatus
1 parent a4d224f commit 8232667

2 files changed

Lines changed: 2 additions & 21 deletions

File tree

app/web/src/components/ModelingView/ModelingRightClickMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const rightClickMenuItems = computed(() => {
8585
});
8686
8787
// single selected component
88-
if (selectedComponent.value.changeStatus === "deleted") {
88+
if (selectedComponent.value.toDelete) {
8989
items.push({
9090
label: `Restore ${typeDisplayName()} "${
9191
selectedComponent.value.displayName

app/web/src/store/components.store.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,25 +1096,6 @@ export const useComponentsStore = (forceChangeSetId?: ChangeSetId) => {
10961096
},
10971097
});
10981098
},
1099-
async RESTORE_COMPONENT(componentId: ComponentId) {
1100-
if (changeSetsStore.creatingChangeSet)
1101-
throw new Error("race, wait until the change set is created");
1102-
if (changeSetId === changeSetsStore.headChangeSetId)
1103-
changeSetsStore.creatingChangeSet = true;
1104-
1105-
return new ApiRequest({
1106-
method: "post",
1107-
url: "diagram/restore_component",
1108-
keyRequestStatusBy: componentId,
1109-
params: {
1110-
componentId,
1111-
...visibilityParams,
1112-
},
1113-
onSuccess: (response) => {
1114-
// this.componentDiffsById[componentId] = response.componentDiff;
1115-
},
1116-
});
1117-
},
11181099

11191100
async PASTE_COMPONENTS(
11201101
componentIds: ComponentId[],
@@ -1214,7 +1195,7 @@ export const useComponentsStore = (forceChangeSetId?: ChangeSetId) => {
12141195

12151196
return new ApiRequest({
12161197
method: "post",
1217-
url: "diagram/restore_components",
1198+
url: "diagram/remove_delete_intent",
12181199
keyRequestStatusBy: componentIds,
12191200
params: {
12201201
componentIds,

0 commit comments

Comments
 (0)