installed + downloaded
This commit is contained in:
@@ -52,7 +52,7 @@ const App = () => {
|
|||||||
// Show union of installed games and games with peers
|
// Show union of installed games and games with peers
|
||||||
return games.filter(game => game.installed || game.downloaded || game.peer_count > 0);
|
return games.filter(game => game.installed || game.downloaded || game.peer_count > 0);
|
||||||
case 'installed':
|
case 'installed':
|
||||||
return games.filter(game => game.installed);
|
return games.filter(game => game.installed || game.downloaded);
|
||||||
case 'all':
|
case 'all':
|
||||||
default:
|
default:
|
||||||
return games;
|
return games;
|
||||||
@@ -449,7 +449,7 @@ const App = () => {
|
|||||||
<button
|
<button
|
||||||
className={`filter-button ${currentFilter === 'installed' ? 'active' : ''}`}
|
className={`filter-button ${currentFilter === 'installed' ? 'active' : ''}`}
|
||||||
onClick={() => setCurrentFilter('installed')}
|
onClick={() => setCurrentFilter('installed')}
|
||||||
title="Show only games that are currently installed on your system"
|
title="Show games that are installed or already downloaded to your system"
|
||||||
>
|
>
|
||||||
Installed
|
Installed
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user