Skip to content

Commit

Permalink
feature: show list of apps being installed in the app store
Browse files Browse the repository at this point in the history
there's currently no easy way to see which apps are being installed and know when all are finished
  • Loading branch information
sbender9 committed Sep 12, 2024
1 parent 57b7f8d commit 00ffa73
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/server-admin-ui/src/views/appstore/Apps/Apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ const Apps = function (props) {
</span>
)}
</Button>
{props.appStore.installing.length > 0 && (
<Button
color={view === 'Installing' ? 'primary' : 'secondary'}
onClick={() => setSelectedView('Installing')}
>
Installing
<span className="badge__update">
{props.appStore.installing.length}
</span>
</Button>
)}
</div>
</div>

Expand Down Expand Up @@ -178,9 +189,11 @@ const Apps = function (props) {

const selectedViewToFilter = (selectedView, appStore) => {
if (selectedView === 'Installed') {
return (app) => app.installing || app.installedVersion
return (app) => app.installedVersion
} else if (selectedView === 'Updates') {
return (app) => updateAvailable(app, appStore)
} else if (selectedView === 'Installing') {
return (app) => app.installing
}
return () => true
}
Expand Down

0 comments on commit 00ffa73

Please sign in to comment.