Skip to content

Commit

Permalink
🚸 Show error message if podlove export not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Dec 10, 2023
1 parent d5b37b6 commit 6ae867a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions frontend/src/editor/export/webvtt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,16 @@ export function WebVttExportBody({ onClose, outputNameBase, editor }: ExportProp
disabled={!limitLineLength}
/>
</FormControl>
{!canExport.canGenerate && canExport.reason && (
{((!canExport.canGenerate && canExport.reason) ||
(format === 'podlove' && !podloveExportPossible)) && (
<div className="block bg-red-100 px-2 py-2 rounded text-center text-red-700">
{canExport.reason}
<p>{canExport.reason}</p>
{format === 'podlove' && !podloveExportPossible && (
<p>
Configured episode could not be found in the podlove publisher instance. Please check
that the publisher url, credentials and episode id are correct.
</p>
)}
</div>
)}
<div className="flex justify-between">
Expand Down

0 comments on commit 6ae867a

Please sign in to comment.