From da7ce0b65093ba736969e6cc6283708dd01c8175 Mon Sep 17 00:00:00 2001 From: Maxime GRANDCOLAS Date: Fri, 3 Jan 2025 15:11:02 +0100 Subject: [PATCH] [MS] Handle errors for PDF viewer --- client/src/locales/en-US.json | 4 ++ client/src/locales/fr-FR.json | 4 ++ client/src/views/viewers/PdfViewer.vue | 57 +++++++++++++------------- 3 files changed, 36 insertions(+), 29 deletions(-) diff --git a/client/src/locales/en-US.json b/client/src/locales/en-US.json index c067956a9f9..8866db9bf6b 100644 --- a/client/src/locales/en-US.json +++ b/client/src/locales/en-US.json @@ -1760,6 +1760,10 @@ "spreadsheet": { "loadSheetError": "This sheet could not be loaded.", "loadDocumentError": "Could not load this document." + }, + "pdf": { + "loadDocumentError": "Could not load this PDF document.", + "loadPageError": "Could not load this page." } } } diff --git a/client/src/locales/fr-FR.json b/client/src/locales/fr-FR.json index a7d0b085d54..00876a84490 100644 --- a/client/src/locales/fr-FR.json +++ b/client/src/locales/fr-FR.json @@ -1760,6 +1760,10 @@ "spreadsheet": { "loadSheetError": "Impossible de charger cette feuille.", "loadDocumentError": "Impossible de charger ce document." + }, + "pdf": { + "loadDocumentError": "Impossible de charger ce document.", + "loadPageError": "Impossible de charger cette page." } } } diff --git a/client/src/views/viewers/PdfViewer.vue b/client/src/views/viewers/PdfViewer.vue index a13d51c641b..f9f379e38f1 100644 --- a/client/src/views/viewers/PdfViewer.vue +++ b/client/src/views/viewers/PdfViewer.vue @@ -3,20 +3,27 @@