Skip to content

Commit

Permalink
Disable integration set up button if invalid (opensearch-project#1152) (
Browse files Browse the repository at this point in the history
opensearch-project#1160)

(cherry picked from commit 3aefc10)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 2ac5d15)
  • Loading branch information
opensearch-trigger-bot[bot] authored and A9 Swift Project User committed Jan 8, 2024
1 parent fb1940c commit b1b3dc6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions auto_sync_commit_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"last_github_commit": "54d125d0b8e5fb5eb3c6ea664aff7c731f277f2f",
"last_gitfarm_commit": "854d937f281b75b90173cdf4cbad5aebf5758b84"
"last_github_commit": "2ac5d15fc3b1808290313a812e841e035ea0cc64",
"last_gitfarm_commit": "3565a03664516805ff12c1baa3c51e0473d38a29"
}
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 b1b3dc6

Please sign in to comment.