Native navigation

This commit is contained in:
2025-07-02 14:12:39 +02:00
parent ddbf9c832e
commit ddc596ef58
20 changed files with 138 additions and 32 deletions

View File

@@ -1,21 +1,20 @@
@page "/Calendar"
@using salesbook.Shared.Core.Dto
@using salesbook.Shared.Core.Interface
@using salesbook.Shared.Components.Layout
@using salesbook.Shared.Components.SingleElements
@using salesbook.Shared.Components.Layout.Spinner
@using salesbook.Shared.Components.SingleElements.BottomSheet
@using salesbook.Shared.Core.Entity
@using salesbook.Shared.Core.Messages.Activity.New
@inject IManageDataService ManageData
@inject IJSRuntime JS
@inject NewActivityService NewActivity
@inject IPageTitleService PageTitleService
<HeaderLayout Title="@_headerTitle"
@* <HeaderLayout Title="@_headerTitle"
ShowFilter="true"
ShowCalendarToggle="true"
OnFilterToggle="ToggleFilter"
OnCalendarToggle="ToggleExpanded"/>
OnCalendarToggle="ToggleExpanded"/> *@
<div @ref="_weekSliderRef" class="container week-slider @(Expanded ? "expanded" : "") @(SliderAnimation)">
@if (Expanded)
@@ -260,6 +259,8 @@
private void PrepareHeaderTitle()
{
_headerTitle = CurrentMonth.ToString("MMMM yyyy", new System.Globalization.CultureInfo("it-IT")).FirstCharToUpper();
PageTitleService?.SetTitle(_headerTitle);
}
private void PrepareEventsCache()

View File

@@ -1,14 +1,19 @@
@page "/Notifications"
@attribute [Authorize]
@using salesbook.Shared.Components.Layout
@using salesbook.Shared.Components.SingleElements
@using salesbook.Shared.Core.Interface
@inject IPageTitleService PageTitleService
<HeaderLayout Title="Notifiche" />
@* <HeaderLayout Title="Notifiche" /> *@
<div class="container">
<NoDataAvailable Text="Nessuna notifica meno recente" />
</div>
@code {
protected override void OnInitialized()
{
PageTitleService?.SetTitle("Notifiche");
}
}

View File

@@ -1,6 +1,5 @@
@page "/PersonalInfo"
@attribute [Authorize]
@using salesbook.Shared.Components.Layout
@using salesbook.Shared.Core.Authorization.Enum
@using salesbook.Shared.Core.Interface
@using salesbook.Shared.Core.Services
@@ -8,7 +7,7 @@
@inject INetworkService NetworkService
@inject IFormFactor FormFactor
<HeaderLayout BackTo="Indietro" Back="true" BackOnTop="true" Title="Profilo" ShowProfile="false"/>
@* <HeaderLayout BackTo="Indietro" Back="true" BackOnTop="true" Title="Profilo" ShowProfile="false"/> *@
@if (IsLoggedIn)
{

View File

@@ -1,11 +1,11 @@
@page "/Users"
@attribute [Authorize]
@using salesbook.Shared.Components.Layout
@using salesbook.Shared.Core.Entity
@using salesbook.Shared.Core.Interface
@inject IManageDataService ManageData
@inject IPageTitleService PageTitleService
<HeaderLayout Title="Contatti"/>
@* <HeaderLayout Title="Contatti"/> *@
<div class="container search-box">
<div class="input-card clearButton">
@@ -36,6 +36,11 @@
private List<UserDisplayItem> FilteredGroupedUserList { get; set; } = [];
private string? TextToFilter { get; set; }
protected override void OnInitialized()
{
PageTitleService?.SetTitle("Contatti");
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)