From 80befddbf57d3ef1df128390e82ad1fee4dc5e30 Mon Sep 17 00:00:00 2001 From: Alexander van Delft Date: Mon, 16 Dec 2024 09:13:38 +0100 Subject: [PATCH] Remove drag/drop --- .../Components/CardView/CardView.razor | 7 +----- .../Components/CardView/CardView.razor.cs | 24 ------------------- 2 files changed, 1 insertion(+), 30 deletions(-) diff --git a/COMET.Web.Common/Components/CardView/CardView.razor b/COMET.Web.Common/Components/CardView/CardView.razor index 8fba6946..7b724ee8 100644 --- a/COMET.Web.Common/Components/CardView/CardView.razor +++ b/COMET.Web.Common/Components/CardView/CardView.razor @@ -44,12 +44,7 @@
+ @onclick="@(() => this.selectItem(@context))">
diff --git a/COMET.Web.Common/Components/CardView/CardView.razor.cs b/COMET.Web.Common/Components/CardView/CardView.razor.cs index c249d5b4..ac64d55d 100644 --- a/COMET.Web.Common/Components/CardView/CardView.razor.cs +++ b/COMET.Web.Common/Components/CardView/CardView.razor.cs @@ -102,11 +102,6 @@ public partial class CardView : DisposableComponent /// private T selected; - /// - /// Gets the dragged node used in drag and drop interactions - /// - private T draggedNode { get; set; } - /// /// Gets or sets the term where to search/filter items on /// @@ -136,25 +131,6 @@ private void selectItem(T item) this.selected = item; } - /// - /// Method invoked when a node is dragged - /// - /// The dragged node - private void OnDragNode(T node) - { - this.draggedNode = node; - } - - /// - /// Method invoked when a node is dropped - /// - /// The target node where the has been dropped - /// A - private async Task OnDropNode(T targetNode) - { - //not implemented yet - } - /// /// Filters the list of items to show in the UI based on the ///