From 2358bb5408bb5478f71fad7d6efce3479ac6c368 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Mon, 27 Sep 2021 19:08:08 -0500 Subject: [PATCH] tile: moving status to predictable area --- pkg/grid/src/tiles/Tile.tsx | 45 +++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/pkg/grid/src/tiles/Tile.tsx b/pkg/grid/src/tiles/Tile.tsx index d8dd06b3d..7338b9d5e 100644 --- a/pkg/grid/src/tiles/Tile.tsx +++ b/pkg/grid/src/tiles/Tile.tsx @@ -41,36 +41,33 @@ export const Tile: FunctionComponent = ({ charge, desk }) => { onAuxClick={() => addRecentApp(desk)} >
- {loading ? ( -
- -
- ) : ( - <> - {vat?.arak.rail?.paused && ( - - )} - - +
+ {!active && ( + <> + {loading && } + + {suspended && 'Suspended'} + {loading && 'Installing'} + {hung && 'Errored'} + + + )} +
+ {vat?.arak.rail?.paused && ( + )} +

{title}

- {!active && ( - - {suspended && 'Suspended'} - {loading && 'Installing'} - {hung && 'Errored'} - - )}
{image && !loading && (