BlazorStart/Start/Client/Pages/Index.razor

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-11-30 05:34:42 +00:00
@page "/"
2021-12-04 00:44:02 +00:00
@using Start.Client.Components
2021-12-04 00:44:02 +00:00
@using Start.Client.Store.State
@using Microsoft.AspNetCore.Authorization
2021-12-04 00:44:02 +00:00
@using Fluxor
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
@attribute [Authorize]
2021-12-04 00:44:02 +00:00
@inject Blazored.LocalStorage.ILocalStorageService localStorage
2021-12-04 00:44:02 +00:00
@inject IState<RootState> state
@inject IDispatcher dispatch
@if (this.state.Value.ContainerListState.ErrorMessage != null)
{
2021-12-04 00:44:02 +00:00
<Alert Type="Alert.AlertType.Error">
<b>Error</b> @this.state.Value.ContainerListState.ErrorMessage
</Alert>
}
@if (this.state.Value.ContainerListState.IsLoadingContainersList)
{
<div class="empty">
<div class="empty-icon">
<div class="loading loading-lg"></div>
</div>
<p class="empty-title h5">Loading Containers</p>
</div>
}
else
{
<Sidebar>
<ContainerList />
<BookmarkContainer />
2021-12-16 18:46:22 +00:00
@* Data management forms *@
<CreateContainer />
<DeleteContainer />
2021-12-05 23:50:48 +00:00
<CreateGroup />
2021-12-11 21:56:35 +00:00
<DeleteGroup />
2021-12-14 00:27:13 +00:00
<CreateBookmark />
2021-12-16 18:46:22 +00:00
<DeleteBookmark />
</Sidebar>
}
@code
{
}