Skip to content

Commit

Permalink
refactor(app): do not show fallback tooltip on run action button (#16492
Browse files Browse the repository at this point in the history
)

Closes RQA-3311
  • Loading branch information
mjhuff authored Oct 16, 2024
1 parent 953112e commit 46336c1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface UseActionButtonDisabledUtilsProps extends BaseActionButtonProps {
}

type UseActionButtonDisabledUtilsResult =
| { isDisabled: true; disabledReason: string }
| { isDisabled: true; disabledReason: string | null }
| { isDisabled: false; disabledReason: null }

// Manages the various reasons the ActionButton may be disabled, returning the disabled state and user-facing disabled
Expand All @@ -45,7 +45,6 @@ export function useActionBtnDisabledUtils(
isClosingCurrentRun,
} = props

const { t } = useTranslation('shared')
const {
isPlayRunActionLoading,
isPauseRunActionLoading,
Expand Down Expand Up @@ -77,7 +76,7 @@ export function useActionBtnDisabledUtils(
})

return isDisabled
? { isDisabled: true, disabledReason: disabledReason ?? t('robot_is_busy') }
? { isDisabled: true, disabledReason }
: { isDisabled: false, disabledReason: null }
}

Expand Down

0 comments on commit 46336c1

Please sign in to comment.