Skip to content

Commit

Permalink
hide mod actions for non-steam owned games
Browse files Browse the repository at this point in the history
  • Loading branch information
Raicuparta committed Jan 3, 2024
1 parent 5257f8f commit d5922c2
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions frontend/components/owned-games/owned-game-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,28 @@ export function OwnedGameModal(props: Props) {
columns={ownedGamesColumns}
item={props.game}
/>
<CommandButtonGroup label="Game Actions">
<CommandButton
leftSection={<IconBrowser />}
onClick={() => steamCommands.openStorePage(props.game.id)}
>
Open Store Page
</CommandButton>
<CommandButton
leftSection={<IconBooks />}
onClick={() => steamCommands.showInLibrary(props.game.id)}
>
Show in Library
</CommandButton>
<CommandButton
leftSection={<IconDownload />}
onClick={() => steamCommands.install(props.game.id)}
>
Install
</CommandButton>
</CommandButtonGroup>
{props.game.providerId === "Steam" && (
<CommandButtonGroup label="Game Actions">
<CommandButton
leftSection={<IconBrowser />}
onClick={() => steamCommands.openStorePage(props.game.id)}
>
Open Store Page
</CommandButton>
<CommandButton
leftSection={<IconBooks />}
onClick={() => steamCommands.showInLibrary(props.game.id)}
>
Show in Library
</CommandButton>
<CommandButton
leftSection={<IconDownload />}
onClick={() => steamCommands.install(props.game.id)}
>
Install
</CommandButton>
</CommandButtonGroup>
)}
<DebugData data={props.game} />
</Stack>
</Modal>
Expand Down

0 comments on commit d5922c2

Please sign in to comment.