diff --git a/BlazorApp1/BlazorApp1.csproj b/BlazorApp1/BlazorApp1.csproj
index 85b598a..2ce55ff 100644
--- a/BlazorApp1/BlazorApp1.csproj
+++ b/BlazorApp1/BlazorApp1.csproj
@@ -9,14 +9,14 @@
-
+
-
-
-
-
+
+
+
+
-
+
diff --git a/BlazorApp1/Components/InventoryItem.razor.cs b/BlazorApp1/Components/InventoryItem.razor.cs
index 1ed11c9..d90c677 100644
--- a/BlazorApp1/Components/InventoryItem.razor.cs
+++ b/BlazorApp1/Components/InventoryItem.razor.cs
@@ -69,9 +69,14 @@ namespace BlazorApp1.Components
private void OnDragStart()
{
- Parent.CurrentDragItem = new Item(this.Item.Id, this.Item.DisplayName, this.Item.Name, this.Item.StackSize, 1, this.Item.MaxDurability, this.Item.EnchantCategories, this.Item.RepairWith, this.Item.CreatedDate, this.Item.UpdatedDate, this.Item.ImageBase64);
+ Parent.CurrentDragItem = new Item(this.Item.Id, this.Item.DisplayName, this.Item.Name, this.Item.StackSize, this.Item.Stack, this.Item.MaxDurability, this.Item.EnchantCategories, this.Item.RepairWith, this.Item.CreatedDate, this.Item.UpdatedDate, this.Item.ImageBase64);
Parent.Actions.Add(new CraftingAction { Action = "Drag Start", Item = this.Item, Index = this.Index });
+
+ if (!NoDrop)
+ {
+ this.Item = null;
+ }
}
}
}
diff --git a/BlazorApp1/Components/SearchBar.razor.cs b/BlazorApp1/Components/SearchBar.razor.cs
index 8cf619c..001b420 100644
--- a/BlazorApp1/Components/SearchBar.razor.cs
+++ b/BlazorApp1/Components/SearchBar.razor.cs
@@ -16,8 +16,8 @@ namespace BlazorApp1.Components
{
if (String.Equals(item.DisplayName, ListeItems) == true)
{
- return;
-
+
+
}
}
}
diff --git a/BlazorApp1/Pages/Inventory.razor b/BlazorApp1/Pages/Inventory.razor
index ce08bda..4f4b110 100644
--- a/BlazorApp1/Pages/Inventory.razor
+++ b/BlazorApp1/Pages/Inventory.razor
@@ -20,7 +20,7 @@
Responsive>
-
+
CurrentCulture: @CultureInfo.CurrentCulture
diff --git a/BlazorApp1/Resources/Pages.Inventory.fr-FR.resx b/BlazorApp1/Resources/Pages.Inventory.fr-FR.resx
index d61508d..37ea323 100644
--- a/BlazorApp1/Resources/Pages.Inventory.fr-FR.resx
+++ b/BlazorApp1/Resources/Pages.Inventory.fr-FR.resx
@@ -126,6 +126,9 @@
Historique des actions
+
+ Trier par nom
+
Inventaire
diff --git a/BlazorApp1/Resources/Pages.Inventory.resx b/BlazorApp1/Resources/Pages.Inventory.resx
index b743558..5fca1ab 100644
--- a/BlazorApp1/Resources/Pages.Inventory.resx
+++ b/BlazorApp1/Resources/Pages.Inventory.resx
@@ -126,6 +126,9 @@
Action logs
+
+ Sort by name
+
Inventory
diff --git a/Minecraft.Crafting.Api/Minecraft.Crafting.Api.csproj b/Minecraft.Crafting.Api/Minecraft.Crafting.Api.csproj
index e5e28b3..4bf68bb 100644
--- a/Minecraft.Crafting.Api/Minecraft.Crafting.Api.csproj
+++ b/Minecraft.Crafting.Api/Minecraft.Crafting.Api.csproj
@@ -11,8 +11,8 @@
-
-
+
+