LANCommander/LANCommander.Server/UI/Shared/MainLayout.razor
Pat Hartl 86c906f8db Add project for automated tests
Had to remove the responsibility of providing the current version of the application from UpdateService. A new IVersionProvider can be used to get the version. This also allows for this to be mocked in tests.
2025-03-15 21:00:00 -05:00

25 lines
No EOL
792 B
Text

@using LANCommander.Server.Providers
@inherits LayoutComponentBase
@inject IVersionProvider VersionProvider
@inject NavigationManager NavigationManager
<Layout Class="layout">
<Sidebar />
<Flex Vertical Justify="FlexJustify.SpaceBetween" Gap="FlexGap.Large" Class="layout-wrapper" >
<ErrorHandler Title="Unexpected Error">
<Body>
<Content>
@Body
</Content>
</Body>
<Extra>
<Button Type="ButtonType.Primary" OnClick="@(() => NavigationManager.Refresh())">Refresh</Button>
</Extra>
</ErrorHandler>
<Footer>
LANCommander v@(VersionProvider.GetCurrentVersion().WithoutMetadata().ToString())
</Footer>
</Flex>
</Layout>