mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 08:15:48 +00:00
Disable "I'm feeling lucky" button if game list is empty
This commit is contained in:
@@ -82,7 +82,9 @@ export default function MainLayout() {
|
|||||||
</NavbarBrand>
|
</NavbarBrand>
|
||||||
{!isSearchPage && <NavbarContent justify="center" className="flex-1 max-w-96">
|
{!isSearchPage && <NavbarContent justify="center" className="flex-1 max-w-96">
|
||||||
<Tooltip content="I'm feeling lucky" placement="bottom">
|
<Tooltip content="I'm feeling lucky" placement="bottom">
|
||||||
<Button isIconOnly variant="light" onPress={() => navigate("/game/" + getRandomGameId())}>
|
<Button isIconOnly variant="light"
|
||||||
|
onPress={() => navigate("/game/" + getRandomGameId())}
|
||||||
|
isDisabled={gameState.games.length === 0}>
|
||||||
<DiceSix/>
|
<DiceSix/>
|
||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user