@@ -1553,7 +1553,7 @@ public static async Task<bool> ExecuteUiForFetchOfElements(
1553
1553
{
1554
1554
MainWindowLogic . LogErrorToTicketStatic ( ticket ,
1555
1555
new InvalidDataException ( ) ,
1556
- "Error building location from next fetch selection. Aborting." ) ;
1556
+ "Error building location from fetch selection. Aborting." ) ;
1557
1557
return false ;
1558
1558
}
1559
1559
@@ -2128,9 +2128,11 @@ public void DisplayOrEditAasEntitySubmodelOrRef(
2128
2128
AddActionPanel ( stack , "Submodel:" ,
2129
2129
repo : repo , superMenu : superMenu ,
2130
2130
ticketMenu : new AasxMenu ( )
2131
- . AddAction ( "aas-elem-del" , "Delete" ,
2132
- "Deletes the currently selected element." ,
2133
- inputGesture : "Ctrl+Shift+Delete" ) ,
2131
+ . AddAction ( "aas-elem-del" , "Delete \U0001f847 here" ,
2132
+ "Deletes the currently selected Submodel in the local environment." ,
2133
+ inputGesture : "Ctrl+Shift+Delete" )
2134
+ . AddAction ( "delete-sm-in-repo" , "Delete SM \u274c in Repo" ,
2135
+ "Delete Submodel by Id in a given Repository or Registry." ) ,
2134
2136
ticketAction : ( buttonNdx , ticket ) =>
2135
2137
{
2136
2138
if ( buttonNdx == 0 )
@@ -2314,7 +2316,7 @@ public void DisplayOrEditAasEntitySubmodelOrRef(
2314
2316
"assigns the SubmodelElement to it." )
2315
2317
. AddAction ( "create-smes" , "Create \U0001f844 SMEs (all)" ,
2316
2318
"Create missing CDs from semanticId of used SMEs." )
2317
- . AddAction ( "delete-cd-in-repo" , "Delete \u274c in Repo" ,
2319
+ . AddAction ( "delete-cd-in-repo" , "Delete CD \u274c in Repo" ,
2318
2320
"Delete ConceptDescriptions which are referenced by semanticId of SubmodelElements " +
2319
2321
"in a given Repository or Registry." ) ,
2320
2322
ticketActionAsync : async ( buttonNdx , ticket ) =>
@@ -2390,11 +2392,22 @@ public void DisplayOrEditAasEntitySubmodelOrRef(
2390
2392
var cdIds = lrs . Select ( ( lr ) => lr ? . Reference ? . GetAsExactlyOneKey ( ) ? . Value ) ;
2391
2393
2392
2394
// call function
2395
+ // (only the side info in the _specific_ endpoint gives information, in which
2396
+ // repo the CDs could be deleted)
2393
2397
await PackageContainerHttpRepoSubset . AssistantDeleteCDsInRepo (
2394
2398
ticket , context ,
2395
2399
"Delete CDs in Repository/ Registry" ,
2396
2400
cdIds ,
2397
- runtimeOptions : packages . CentralRuntimeOptions ) ;
2401
+ runtimeOptions : packages . CentralRuntimeOptions ,
2402
+ presetRecord : new PackageContainerHttpRepoSubset . DeleteAssistantJobRecord ( )
2403
+ {
2404
+ // assume Repo ?!
2405
+ BaseType = ConnectExtendedRecord . BaseTypeEnum . Repository ,
2406
+
2407
+ // extract base address
2408
+ BaseAddress = "" + PackageContainerHttpRepoSubset . GetBaseUri (
2409
+ sideInfo ? . Endpoint ? . AbsoluteUri ) ? . AbsoluteUri
2410
+ } ) ;
2398
2411
2399
2412
// ok
2400
2413
return new AnyUiLambdaActionNone ( ) ;
0 commit comments