Disable nav buttons if there's no history
parent
3525ce96da
commit
8475a683dd
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue