-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start implementing Showdown export #20
- Loading branch information
1 parent
0080c7a
commit 91e69cf
Showing
7 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<MudDialog> | ||
<DialogContent> | ||
@ShowdownExport | ||
</DialogContent> | ||
<DialogActions> | ||
<MudButton OnClick="@Close" | ||
Variant="@Variant.Filled"> | ||
Close | ||
</MudButton> | ||
</DialogActions> | ||
</MudDialog> |
14 changes: 14 additions & 0 deletions
14
Pkmds.Web/Components/Dialogs/ShowdownExportDialog.razor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Pkmds.Web.Components.Dialogs; | ||
|
||
public partial class ShowdownExportDialog | ||
{ | ||
[Parameter] | ||
public PKM? Pokemon { get; set; } | ||
|
||
[CascadingParameter] | ||
private MudDialogInstance? MudDialog { get; set; } | ||
|
||
private string? ShowdownExport => Pokemon is not null ? AppService.ExportPokemonAsShowdown(Pokemon) : AppService.ExportPartyAsShowdown(); | ||
|
||
private void Close() => MudDialog?.Close(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters