From 6ae867a20261415d118d34d5def5b1fefba2a4f2 Mon Sep 17 00:00:00 2001 From: pajowu Date: Sun, 10 Dec 2023 01:49:50 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Show=20error=20message=20if=20po?= =?UTF-8?q?dlove=20export=20not=20possible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/editor/export/webvtt.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/frontend/src/editor/export/webvtt.tsx b/frontend/src/editor/export/webvtt.tsx index fe45992d..3681d067 100644 --- a/frontend/src/editor/export/webvtt.tsx +++ b/frontend/src/editor/export/webvtt.tsx @@ -152,9 +152,16 @@ export function WebVttExportBody({ onClose, outputNameBase, editor }: ExportProp disabled={!limitLineLength} /> - {!canExport.canGenerate && canExport.reason && ( + {((!canExport.canGenerate && canExport.reason) || + (format === 'podlove' && !podloveExportPossible)) && (
- {canExport.reason} +

{canExport.reason}

+ {format === 'podlove' && !podloveExportPossible && ( +

+ Configured episode could not be found in the podlove publisher instance. Please check + that the publisher url, credentials and episode id are correct. +

+ )}
)}