|
|
|
@ -16,25 +16,8 @@ namespace ProjetBlazor.Pages
|
|
|
|
|
[Inject]
|
|
|
|
|
public IWebHostEnvironment WebHostEnvironment { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The default enchant categories.
|
|
|
|
|
/// </summary>
|
|
|
|
|
//private List<string> enchantCategories = new List<string>() { "armor", "armor_head", "armor_chest", "weapon", "digger", "breakable", "vanishable" };
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The current item model
|
|
|
|
|
/// </summary>
|
|
|
|
|
/*
|
|
|
|
|
private ItemModel itemModel = new()
|
|
|
|
|
{
|
|
|
|
|
EnchantCategories = new List<string>(),
|
|
|
|
|
RepairWith = new List<string>()
|
|
|
|
|
};*/
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The default repair with.
|
|
|
|
|
/// </summary>
|
|
|
|
|
//private List<string> repairWith = new List<string>() { "oak_planks", "spruce_planks", "birch_planks", "jungle_planks", "acacia_planks", "dark_oak_planks", "crimson_planks", "warped_planks" };
|
|
|
|
|
[Inject]
|
|
|
|
|
public NavigationManager NavigationManager { get; set; }
|
|
|
|
|
|
|
|
|
|
[Inject]
|
|
|
|
|
public IDataService DataService { get; set; }
|
|
|
|
@ -111,6 +94,8 @@ namespace ProjetBlazor.Pages
|
|
|
|
|
private async void HandleValidSubmit()
|
|
|
|
|
{
|
|
|
|
|
await DataService.Update(Id,musiqueModele);
|
|
|
|
|
|
|
|
|
|
NavigationManager.NavigateTo("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async Task LoadImage(InputFileChangeEventArgs e)
|
|
|
|
|