-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[SR] Add SnapshotTable and SnapshotDetails. #34837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a67b93c
c882a83
4a4d5c1
e5ba296
8c7c0b3
f6263c9
564f59f
590684d
14c3faa
549405c
cc1378e
0a640ef
dfb2a5b
532d4ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,22 +6,6 @@ | |
| import React, { Fragment } from 'react'; | ||
| import { RouteComponentProps, withRouter } from 'react-router-dom'; | ||
|
|
||
| import { useAppDependencies } from '../../../../index'; | ||
| import { documentationLinksService } from '../../../../services/documentation'; | ||
| import { loadRepository } from '../../../../services/http'; | ||
| import { textService } from '../../../../services/text'; | ||
|
|
||
| import { REPOSITORY_TYPES } from '../../../../../../common/constants'; | ||
| import { Repository } from '../../../../../../common/types'; | ||
| import { | ||
| RepositoryDeleteProvider, | ||
| RepositoryVerificationBadge, | ||
| SectionError, | ||
| SectionLoading, | ||
| } from '../../../../components'; | ||
| import { BASE_PATH } from '../../../../constants'; | ||
| import { TypeDetails } from './type_details'; | ||
|
|
||
| import { | ||
| EuiButton, | ||
| EuiButtonEmpty, | ||
|
|
@@ -39,6 +23,22 @@ import { | |
|
|
||
| import 'brace/theme/textmate'; | ||
|
|
||
| import { useAppDependencies } from '../../../../index'; | ||
| import { documentationLinksService } from '../../../../services/documentation'; | ||
| import { loadRepository } from '../../../../services/http'; | ||
| import { textService } from '../../../../services/text'; | ||
|
|
||
| import { REPOSITORY_TYPES } from '../../../../../../common/constants'; | ||
| import { Repository } from '../../../../../../common/types'; | ||
| import { | ||
| RepositoryDeleteProvider, | ||
| RepositoryVerificationBadge, | ||
| SectionError, | ||
| SectionLoading, | ||
| } from '../../../../components'; | ||
| import { BASE_PATH } from '../../../../constants'; | ||
| import { TypeDetails } from './type_details'; | ||
|
|
||
| interface Props extends RouteComponentProps { | ||
| repositoryName: Repository['name']; | ||
| onClose: () => void; | ||
|
|
@@ -77,7 +77,7 @@ const RepositoryDetailsUi: React.FunctionComponent<Props> = ({ | |
| <SectionLoading> | ||
| <FormattedMessage | ||
| id="xpack.snapshotRestore.repositoryDetails.loadingRepository" | ||
| defaultMessage="Loading repository..." | ||
| defaultMessage="Loading repository…" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this an intentional change?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for checking! Yes, it is. This is better for localization purposes. I double-checked with Gail and she also approved. |
||
| /> | ||
| </SectionLoading> | ||
| ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,13 +19,13 @@ import { RepositoryTable } from './repository_table'; | |
| import { EuiButton, EuiEmptyPrompt } from '@elastic/eui'; | ||
|
|
||
| interface MatchParams { | ||
| name?: Repository['name']; | ||
| repositoryName?: Repository['name']; | ||
| } | ||
| interface Props extends RouteComponentProps<MatchParams> {} | ||
|
|
||
| export const RepositoryList: React.FunctionComponent<Props> = ({ | ||
| match: { | ||
| params: { name }, | ||
| params: { repositoryName: name }, | ||
| }, | ||
| history, | ||
| }) => { | ||
|
|
@@ -64,7 +64,7 @@ export const RepositoryList: React.FunctionComponent<Props> = ({ | |
| <SectionLoading> | ||
| <FormattedMessage | ||
| id="xpack.snapshotRestore.repositoryList.loadingRepositories" | ||
| defaultMessage="Loading repositories..." | ||
| defaultMessage="Loading repositories…" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this an intentional change? |
||
| /> | ||
| </SectionLoading> | ||
| ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License; | ||
| * you may not use this file except in compliance with the Elastic License. | ||
| */ | ||
|
|
||
| export { SnapshotDetails } from './snapshot_details'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jen-huang Were you able to test this? I made a fix to the
useRequesthook which I think takes care of this, so I removed it.