From dae7208bd86c018c171a13d66a1ecb9bfcae4895 Mon Sep 17 00:00:00 2001
From: John Dorlus
Date: Wed, 8 Jan 2020 20:02:34 -0500
Subject: [PATCH] Added i10n fixes for header.
---
.../plugins/snapshot_restore/common/types/repository.ts | 2 +-
.../repository_details/repository_details.tsx | 7 +------
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/x-pack/legacy/plugins/snapshot_restore/common/types/repository.ts b/x-pack/legacy/plugins/snapshot_restore/common/types/repository.ts
index fd18eabf9e7c78..b9b26c55903246 100644
--- a/x-pack/legacy/plugins/snapshot_restore/common/types/repository.ts
+++ b/x-pack/legacy/plugins/snapshot_restore/common/types/repository.ts
@@ -165,7 +165,7 @@ export interface SuccessfulRepositoryCleanup {
export interface FailedRepositoryCleanup {
cleaned: false;
- error: string;
+ error: object;
}
export type RepositoryCleanup = FailedRepositoryCleanup | SuccessfulRepositoryCleanup;
diff --git a/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx b/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx
index ee0b6f68afca81..5b13bcb78fe9c5 100644
--- a/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx
+++ b/x-pack/legacy/plugins/snapshot_restore/public/app/sections/home/repository_list/repository_details/repository_details.tsx
@@ -360,12 +360,7 @@ export const RepositoryDetails: React.FunctionComponent = ({
defaultMessage="Sorry, there was an error cleaning the repository."
/>
-
-
-
+ {cleanup.error ? cleanup.error.toString() : '503: Unknown error'}
)}
>