Rivista UI
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@inject IJSRuntime JS
|
||||
|
||||
<div class="header">
|
||||
<div class="container header">
|
||||
<div class="header-content @(Back ? "with-back" : "no-back")">
|
||||
@if (Back)
|
||||
{
|
||||
@@ -26,7 +26,7 @@
|
||||
}
|
||||
@if (ShowNotifications)
|
||||
{
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Notifications" Color="Color.Dark"/>
|
||||
@* <MudIconButton Icon="@Icons.Material.Filled.Notifications" Color="Color.Dark"/> *@
|
||||
}
|
||||
@if (ShowCalendarToggle)
|
||||
{
|
||||
@@ -54,6 +54,7 @@
|
||||
[Parameter] public string BackTo { get; set; } = "";
|
||||
|
||||
[Parameter] public bool Cancel { get; set; }
|
||||
[Parameter] public EventCallback OnCancel { get; set; }
|
||||
[Parameter] public string? LabelSave { get; set; }
|
||||
[Parameter] public EventCallback OnSave { get; set; }
|
||||
|
||||
@@ -68,7 +69,14 @@
|
||||
|
||||
private async Task GoBack()
|
||||
{
|
||||
if (Cancel)
|
||||
{
|
||||
await OnCancel.InvokeAsync();
|
||||
return;
|
||||
}
|
||||
|
||||
await JS.InvokeVoidAsync("goBack");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user