Skip to content

Commit

Permalink
Disable integration set up button if invalid (#1152)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3aefc10)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Oct 23, 2023
1 parent 54d125d commit cacaa10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<button
class="euiButton euiButton--primary euiButton--fill"
class="euiButton euiButton--primary euiButton--fill euiButton-isDisabled"
disabled=""
type="button"
>
<span
Expand Down Expand Up @@ -889,6 +890,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
className="euiFlexItem euiFlexItem--flexGrowZero"
>
<EuiButton
disabled={true}
fill={true}
iconSide="right"
iconType="arrowRight"
Expand All @@ -897,19 +899,19 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
>
<EuiButtonDisplay
baseClassName="euiButton"
disabled={false}
disabled={true}
element="button"
fill={true}
iconSide="right"
iconType="arrowRight"
isDisabled={false}
isDisabled={true}
isLoading={false}
onClick={[Function]}
type="button"
>
<button
className="euiButton euiButton--primary euiButton--fill"
disabled={false}
className="euiButton euiButton--primary euiButton--fill euiButton-isDisabled"
disabled={true}
onClick={[Function]}
style={
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
EuiForm,
EuiFormRow,
EuiLoadingDashboards,
EuiModal,
EuiPage,
EuiPageBody,
EuiPageContent,
Expand Down Expand Up @@ -296,6 +295,7 @@ export function SetupBottomBar({
iconType="arrowRight"
iconSide="right"
isLoading={loading}
disabled={config.displayName.length < 1 || config.connectionDataSource.length < 1}
onClick={async () => {
setLoading(true);

Expand Down

0 comments on commit cacaa10

Please sign in to comment.