Skip to content

Commit

Permalink
Added i10n fixes for header.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Dorlus committed Jan 9, 2020
1 parent 590a904 commit dae7208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export interface SuccessfulRepositoryCleanup {

export interface FailedRepositoryCleanup {
cleaned: false;
error: string;
error: object;
}

export type RepositoryCleanup = FailedRepositoryCleanup | SuccessfulRepositoryCleanup;
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,7 @@ export const RepositoryDetails: React.FunctionComponent<Props> = ({
defaultMessage="Sorry, there was an error cleaning the repository."
/>
</p>
<p>
<FormattedMessage
id="xpack.snapshotRestore.repositoryDetails.cleanupRepositoryErrorMessage"
defaultMessage={`${cleanup.error}`}
/>
</p>
<p>{cleanup.error ? cleanup.error.toString() : '503: Unknown error'}</p>
</EuiCallOut>
)}
</>
Expand Down

0 comments on commit dae7208

Please sign in to comment.