This repository was archived by the owner on Feb 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments