Skip to content

Commit

Permalink
style: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Nov 23, 2024
1 parent aeb7c5a commit 3a809f0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
24 changes: 12 additions & 12 deletions packages/server-admin-ui/src/views/appstore/Apps/Apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,18 @@ const Apps = function (props) {
</Button>
{props.appStore.installing.length > 0 && (
<>
<Button
color={view === 'Installing' ? 'primary' : 'secondary'}
onClick={() => setSelectedView('Installing')}
>
Installs & Removes
{installingCount(props.appStore) > 0 && (
<span className="badge__update">
{installingCount(props.appStore)}
</span>
)}
</Button>
{props.appStore.installing.length > 0 && ('(Pending restart)')}
<Button
color={view === 'Installing' ? 'primary' : 'secondary'}
onClick={() => setSelectedView('Installing')}
>
Installs & Removes
{installingCount(props.appStore) > 0 && (
<span className="badge__update">
{installingCount(props.appStore)}
</span>
)}
</Button>
{props.appStore.installing.length > 0 && '(Pending restart)'}
</>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ function ActionCellRenderer(props) {
// If the app has progressed we show the status

if (app.isInstalling || app.isRemoving || app.isWaiting) {
status = app.isRemove ? 'Removing' : (app.isWaiting ? 'Waiting..' : 'Installing')
status = app.isRemove
? 'Removing'
: app.isWaiting
? 'Waiting..'
: 'Installing'
progress = (
<Progress
className="progress-sm progress__bar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export default function NameCellRenderer(props) {
<div className="cell__renderer cell-version center">
<div className="version__container">
<span className="version">
v{props.data.newVersion ? props.data.installedVersion : props.data.version}
v
{props.data.newVersion
? props.data.installedVersion
: props.data.version}
</span>

{/*
Expand Down

0 comments on commit 3a809f0

Please sign in to comment.