Skip to content

Commit

Permalink
Adjust buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 21, 2024
1 parent 6de3d67 commit 30d0792
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Pkmds.Web/Components/EditForms/PokemonEditForm.razor
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ AppState.SelectedSlotsAreValid)
<MudButton OnClick="@DeletePokemon"
ButtonType="@ButtonType.Button"
Color="@Color.Error"
Size="@Size.Small"
Variant="@Variant.Filled"
Class="my-2"
StartIcon="@Icons.Material.Filled.Delete"
title="Delete Pokémon"
Disabled="@(Pokemon.Species == (ushort)Species.None)">
Delete Pokémon
Delete
</MudButton>

<MudButton OnClick="@(() => AppService.SavePokemon(Pokemon))"
Expand All @@ -27,6 +29,8 @@ AppState.SelectedSlotsAreValid)
StartIcon="@Icons.Material.Filled.Save"
Class="my-2"
Color="@Color.Primary"
Size="@Size.Small"
title="Save Pokémon"
Disabled="@(Pokemon.Species == (ushort)Species.None)">
Save
</MudButton>
Expand All @@ -37,6 +41,8 @@ AppState.SelectedSlotsAreValid)
StartIcon="@Icons.Material.Filled.ContentCopy"
Class="my-2"
Color="@Color.Default"
Size="@Size.Small"
title="Copy Pokémon"
Disabled="@(Pokemon.Species == (ushort)Species.None)">
Copy
</MudButton>
Expand All @@ -47,6 +53,8 @@ AppState.SelectedSlotsAreValid)
StartIcon="@Icons.Material.Filled.ContentPaste"
Class="my-2"
Color="@Color.Default"
Size="@Size.Small"
title="Paste Pokémon"
Disabled="@(CopiedPokemon is null)">
Paste
</MudButton>
Expand All @@ -57,8 +65,10 @@ AppState.SelectedSlotsAreValid)
StartIcon="@Icons.Material.Filled.Share"
Class="my-2"
Color="@Color.Default"
Size="@Size.Small"
title="Export Pokémon as Showdown"
Disabled="@(Pokemon.Species == (ushort)Species.None)">
Export as Showdown
Showdown
</MudButton>

</MudStack>
Expand Down

0 comments on commit 30d0792

Please sign in to comment.