Skip to content

Commit

Permalink
Merge pull request #90 from codemonkey85/dev
Browse files Browse the repository at this point in the history
Update MudBlazor
  • Loading branch information
codemonkey85 authored Jan 20, 2025
2 parents 3141f18 + 2988c7a commit b324c7c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/Dialogs/ConfirmActionDialog.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Pkmds.Web.Components.Dialogs;

public partial class ConfirmActionDialog
{
[CascadingParameter] private MudDialogInstance? MudDialog { get; set; }
[CascadingParameter] private IMudDialogInstance? MudDialog { get; set; }

[Parameter] public string Title { get; set; } = "Confirm Action";

Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/Dialogs/ShowdownExportDialog.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public partial class ShowdownExportDialog
{
[Parameter] public PKM? Pokemon { get; set; }

[CascadingParameter] private MudDialogInstance? MudDialog { get; set; }
[CascadingParameter] private IMudDialogInstance? MudDialog { get; set; }

private string ShowdownExport => Pokemon is not null
? AppService.ExportPokemonAsShowdown(Pokemon)
Expand Down
6 changes: 3 additions & 3 deletions Pkmds.Web/Components/EditForms/PokemonEditForm.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public void Dispose() =>
RefreshService.OnAppStateChanged -= StateHasChanged;

private void ExportAsShowdown() =>
DialogService.Show<ShowdownExportDialog>(
DialogService.ShowAsync<ShowdownExportDialog>(
"Showdown Export",
new() { { nameof(ShowdownExportDialog.Pokemon), Pokemon } },
new() { CloseOnEscapeKey = true, });
Expand All @@ -31,7 +31,7 @@ private void DeletePokemon()
{ nameof(ConfirmActionDialog.OnConfirm), EventCallback.Factory.Create<bool>(this, OnDeleteConfirm) }
};

DialogService.Show<ConfirmActionDialog>(
DialogService.ShowAsync<ConfirmActionDialog>(
"Confirm Action",
parameters,
new() { CloseOnEscapeKey = true, MaxWidth = MaxWidth.Small, });
Expand Down Expand Up @@ -100,7 +100,7 @@ void ShowPasteConfirmation()
{ nameof(ConfirmActionDialog.OnConfirm), EventCallback.Factory.Create<bool>(this, OnPasteConfirm) }
};

DialogService.Show<ConfirmActionDialog>(
DialogService.ShowAsync<ConfirmActionDialog>(
"Confirm Action",
parameters,
new() { CloseOnEscapeKey = true, MaxWidth = MaxWidth.Small, });
Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/FileUploadDialog.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Pkmds.Web.Components;

public partial class FileUploadDialog
{
[CascadingParameter] private MudDialogInstance MudDialog { get; set; } = null!;
[CascadingParameter] private IMudDialogInstance MudDialog { get; set; } = null!;

[Parameter] public string Message { get; set; } = "Choose a file to upload.";

Expand Down
2 changes: 1 addition & 1 deletion Pkmds.Web/Components/PartyGrid.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void Dispose()
}

private void ExportAsShowdown() =>
DialogService.Show<ShowdownExportDialog>(
DialogService.ShowAsync<ShowdownExportDialog>(
"Showdown Export",
new DialogOptions { CloseOnEscapeKey = true });
}
2 changes: 1 addition & 1 deletion Pkmds.Web/Pkmds.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.1" PrivateAssets="all" />
<PackageReference Include="KristofferStrube.Blazor.FileSystemAccess" Version="3.2.2" />
<PackageReference Include="MudBlazor" Version="7.15.0" />
<PackageReference Include="MudBlazor" Version="8.0.0" />
<PackageReference Include="PKHeX.Core" Version="24.11.12" />
</ItemGroup>

Expand Down

0 comments on commit b324c7c

Please sign in to comment.