Show Docker container update status in rows

This commit is contained in:
rcourtman
2026-05-18 11:28:00 +01:00
parent e3cce1efba
commit 08e855483f
6 changed files with 201 additions and 106 deletions
@@ -13,6 +13,8 @@ import {
getUpdateButtonLabel,
getUpdateButtonTooltip,
hasContainerUpdate,
hasContainerUpdateCurrent,
hasContainerUpdateError,
type UpdateButtonProps,
type UpdateState,
} from './containerUpdateBadgeModel';
@@ -57,7 +59,11 @@ export function useContainerUpdateButtonState(props: UpdateButtonProps) {
}
});
const hasUpdate = () => hasContainerUpdate(props.updateStatus) || currentState() !== 'idle';
const hasUpdate = () =>
hasContainerUpdate(props.updateStatus) ||
hasContainerUpdateError(props.updateStatus) ||
hasContainerUpdateCurrent(props.updateStatus) ||
currentState() !== 'idle';
const isButtonDisabled = () => currentState() === 'updating' || !settingsLoaded();
const buttonTooltip = () =>
!settingsLoaded()