mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +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>
|
||||
{!isSearchPage && <NavbarContent justify="center" className="flex-1 max-w-96">
|
||||
<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/>
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user