diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Controllers/api/HierarchyController.cs b/AdminUI/LearningHub.Nhs.AdminUI/Controllers/api/HierarchyController.cs index ab42dc4df..ca13e6d81 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Controllers/api/HierarchyController.cs +++ b/AdminUI/LearningHub.Nhs.AdminUI/Controllers/api/HierarchyController.cs @@ -6,7 +6,6 @@ using LearningHub.Nhs.AdminUI.Configuration; using LearningHub.Nhs.AdminUI.Controllers.Api; using LearningHub.Nhs.AdminUI.Interfaces; - using LearningHub.Nhs.Models.Common; using LearningHub.Nhs.Models.Hierarchy; using LearningHub.Nhs.WebUI.Models.Contribute; using Microsoft.AspNetCore.Mvc; @@ -439,5 +438,29 @@ public async Task RemoveReferenceNode(int hierarchyEditDetailId) var apiResponse = await this.hierarchyService.RemoveReferenceNodeAsync(hierarchyEditDetailId); return this.Ok(apiResponse.ValidationResult); } + + /// + /// The DeleteNodeReferenceDetails. + /// + /// The hierarchyEditDetailId. + /// IActionResult. + [Route("DeleteNodeReferenceDetails/{hierarchyEditDetailId}")] + public async Task DeleteNodeReferenceDetails(int hierarchyEditDetailId) + { + var apiResponse = await this.hierarchyService.DeleteNodeReferenceDetailsAsync(hierarchyEditDetailId); + return this.Ok(apiResponse.ValidationResult); + } + + /// + /// Deletes the resource reference details for a hierarchy edit. + /// + /// The hierarchy edit detail id. + /// The . + [Route("DeleteResourceReferenceDetails/{hierarchyEditDetailId}")] + public async Task DeleteResourceReferenceDetails(int hierarchyEditDetailId) + { + var apiResponse = await this.hierarchyService.DeleteResourceReferenceDetailsAsync(hierarchyEditDetailId); + return this.Ok(apiResponse.ValidationResult); + } } } diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Interfaces/IHierarchyService.cs b/AdminUI/LearningHub.Nhs.AdminUI/Interfaces/IHierarchyService.cs index d93bb79e4..a744cd81f 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Interfaces/IHierarchyService.cs +++ b/AdminUI/LearningHub.Nhs.AdminUI/Interfaces/IHierarchyService.cs @@ -198,5 +198,19 @@ public interface IHierarchyService /// The hierarchy Edit Detail Id. /// The . Task RemoveReferenceNodeAsync(int hierarchyEditDetailId); + + /// + /// Deletes the node reference details. + /// + /// The hierarchy Edit Detail Id. + /// The . + Task DeleteNodeReferenceDetailsAsync(int hierarchyEditDetailId); + + /// + /// Deletes the resource reference details. + /// + /// The hierarchy Edit Detail Id. + /// The . + Task DeleteResourceReferenceDetailsAsync(int hierarchyEditDetailId); } } diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Scripts/vuesrc/content-structure/contentStructure.vue b/AdminUI/LearningHub.Nhs.AdminUI/Scripts/vuesrc/content-structure/contentStructure.vue index d9c84355d..ad42c042e 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Scripts/vuesrc/content-structure/contentStructure.vue +++ b/AdminUI/LearningHub.Nhs.AdminUI/Scripts/vuesrc/content-structure/contentStructure.vue @@ -110,14 +110,13 @@ - - - Delete this folder reference + + + Delete folder reference details - -
- - - -