-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This reverts commit 1964008. Signed-off-by: Eric <menwe@amazon.com>
1 parent
2984b70
commit c017ead
Showing
7 changed files
with
94 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { EuiFlexGroup, EuiText, EuiLoadingSpinner, EuiButton } from '@elastic/eui'; | ||
import { AsyncQueryLoadingStatus } from '../../../common/types'; | ||
import React from 'react'; | ||
|
||
interface AsyncQueryBodyProps { | ||
asyncLoading: boolean; | ||
asyncLoadingStatus: AsyncQueryLoadingStatus; | ||
cancelAsyncQuery: () => void; | ||
} | ||
|
||
export function AsyncQueryBody(props: AsyncQueryBodyProps) { | ||
const { asyncLoading, asyncLoadingStatus, cancelAsyncQuery } = props; | ||
|
||
// TODO: implement query failure display | ||
// TODO: implement query cancellation | ||
|
||
return ( | ||
<EuiFlexGroup direction="column" alignItems="center"> | ||
<EuiLoadingSpinner size="l" /> | ||
<EuiText> | ||
<h3>Query running</h3> | ||
</EuiText> | ||
<EuiText>status: {asyncLoadingStatus}</EuiText> | ||
<EuiButton onClick={cancelAsyncQuery}>Cancel</EuiButton> | ||
</EuiFlexGroup> | ||
); | ||
} |
Oops, something went wrong.