|
|
|
|
@ -7,7 +7,8 @@
@@ -7,7 +7,8 @@
|
|
|
|
|
@inject ISnackbar Snackbar |
|
|
|
|
@inject ILogger<AddToCollectionDialog> Logger |
|
|
|
|
|
|
|
|
|
<MudDialog> |
|
|
|
|
<div @onkeydown="@OnKeyDown"> |
|
|
|
|
<MudDialog> |
|
|
|
|
<DialogContent> |
|
|
|
|
<MudContainer Class="mb-6"> |
|
|
|
|
<MudHighlighter Class="mud-primary-text" |
|
|
|
|
@ -34,7 +35,9 @@
@@ -34,7 +35,9 @@
|
|
|
|
|
Add To Collection |
|
|
|
|
</MudButton> |
|
|
|
|
</DialogActions> |
|
|
|
|
</MudDialog> |
|
|
|
|
</MudDialog> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@code { |
|
|
|
|
|
|
|
|
|
@ -109,4 +112,12 @@
@@ -109,4 +112,12 @@
|
|
|
|
|
|
|
|
|
|
private void Cancel() => MudDialog.Cancel(); |
|
|
|
|
|
|
|
|
|
private async Task OnKeyDown(KeyboardEventArgs e) |
|
|
|
|
{ |
|
|
|
|
if (e.Code is "Enter" or "NumpadEnter" && CanSubmit()) |
|
|
|
|
{ |
|
|
|
|
await Submit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |