-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#433) wasm: add frined service dialogs
- Loading branch information
1 parent
9ade62d
commit 1554329
Showing
3 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
MiniSpace.Web/src/Astravent.Web.Wasm/Pages/Friends/Dialogs/ConfirmRemoveFriendDialog.razor
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,28 @@ | ||
<MudDialog MaxWidth="MaxWidth.Small"> | ||
<TitleContent>Confirm Friend Removal</TitleContent> | ||
|
||
<DialogContent> | ||
<MudText Typo="Typo.subtitle1">@ContentText</MudText> | ||
</DialogContent> | ||
|
||
<DialogActions> | ||
<MudSpacer /> | ||
<MudButton Color="Color.Error" Variant="Variant.Filled" OnClick="ConfirmRemove">Yes, Remove</MudButton> | ||
<MudButton Color="Color.Secondary" Variant="Variant.Outlined" OnClick="CancelRemove">Cancel</MudButton> | ||
</DialogActions> | ||
</MudDialog> | ||
|
||
@code { | ||
[CascadingParameter] MudDialogInstance MudDialog { get; set; } | ||
[Parameter] public string ContentText { get; set; } = "Are you sure you want to remove this friend?"; | ||
|
||
private async Task ConfirmRemove() | ||
{ | ||
MudDialog.Close(DialogResult.Ok(true)); | ||
} | ||
|
||
private async Task CancelRemove() | ||
{ | ||
MudDialog.Cancel(); | ||
} | ||
} |
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
Empty file.