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.
25 lines
No EOL
792 B
Text
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> |