mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-22 03:35:52 +00:00
Show Docker container update status in rows
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user