Disable nav buttons if there's no history

dhcp-server
Pat Hartl 2023-09-10 17:12:32 -05:00
parent 3525ce96da
commit 8475a683dd
1 changed files with 2 additions and 2 deletions

View File

@ -7,12 +7,12 @@
<Space> <Space>
<SpaceItem> <SpaceItem>
<Tooltip Title="Back" MouseEnterDelay="2"> <Tooltip Title="Back" MouseEnterDelay="2">
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.ArrowLeft" OnClick="NavigateBack" /> <Button Type="@ButtonType.Text" Icon="@IconType.Outline.ArrowLeft" OnClick="NavigateBack" Disabled="@(Past.Count == 0)" />
</Tooltip> </Tooltip>
</SpaceItem> </SpaceItem>
<SpaceItem> <SpaceItem>
<Tooltip Title="Forward" MouseEnterDelay="2"> <Tooltip Title="Forward" MouseEnterDelay="2">
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.ArrowRight" OnClick="NavigateForward" /> <Button Type="@ButtonType.Text" Icon="@IconType.Outline.ArrowRight" OnClick="NavigateForward" Disabled="@(Future.Count == 0)" />
</Tooltip> </Tooltip>
</SpaceItem> </SpaceItem>
<SpaceItem> <SpaceItem>