diff --git a/BlazingCoffee/Client/BlazingCoffee.Client.csproj b/BlazingCoffee/Client/BlazingCoffee.Client.csproj index cc5107c..90a2e26 100644 --- a/BlazingCoffee/Client/BlazingCoffee.Client.csproj +++ b/BlazingCoffee/Client/BlazingCoffee.Client.csproj @@ -17,18 +17,25 @@ - - - - - + + + + + + - - + + + + + + + + diff --git a/BlazingCoffee/Client/Pages/Index.razor b/BlazingCoffee/Client/Pages/Index.razor index b276a43..b50abed 100644 --- a/BlazingCoffee/Client/Pages/Index.razor +++ b/BlazingCoffee/Client/Pages/Index.razor @@ -1,38 +1,65 @@ @page "/" -@inject ITelerikStringLocalizer L +@inherits CoffeeComponentBase +@inject Blazored.LocalStorage.ILocalStorageService localStorage + + + + + + +

@L["Index_SalesCard_Description"]

+ + +
+
+ + + +

@L["Index_SalesCard_Description"]

+ + +
+
+ + + +

@L["Index_ProductsCard_Description"]

+ + +
+
+
+
+
- - -

@L["Index_SalesCard_Description"]

-
- - @L["Sales"] - - - - -
- - -

@L["Index_SalesCard_Description"]

-
- - @L["HumanCapital"] - - - - -
- - -

@L["Index_ProductsCard_Description"]

-
- - @L["ManageProducts"] - - - - -
+ +@code { + TelerikTileLayout tileLayout { get; set; } + + async Task SaveState() + { + await localStorage.SetItemAsync("IndexLayout", tileLayout.GetState()); + } + + protected override async Task OnAfterRenderAsync(bool firstRender) + { + if (firstRender) + { + var state = await localStorage.GetItemAsync("IndexLayout"); + if (state != null) + { + tileLayout.SetState(state); + } + } + } +} \ No newline at end of file diff --git a/BlazingCoffee/Client/Pages/ManageEmployees.razor b/BlazingCoffee/Client/Pages/ManageEmployees.razor index fdb4fb3..2f46367 100644 --- a/BlazingCoffee/Client/Pages/ManageEmployees.razor +++ b/BlazingCoffee/Client/Pages/ManageEmployees.razor @@ -1,11 +1,17 @@ +@inherits CoffeeComponentBase @attribute [Authorize] @page "/manage-employees" @inject HttpClient Http @using Telerik.Blazor.Services -@inject ITelerikStringLocalizer L - +