ux(transcription): show error banner when bulk mark-all-reviewed fails #627
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { m } from '$lib/paraglide/messages.js';
|
import { m } from '$lib/paraglide/messages.js';
|
||||||
import { getErrorMessage } from '$lib/shared/errors.js';
|
|
||||||
import TranscriptionBlock from './TranscriptionBlock.svelte';
|
import TranscriptionBlock from './TranscriptionBlock.svelte';
|
||||||
import OcrTrigger from '$lib/ocr/OcrTrigger.svelte';
|
import OcrTrigger from '$lib/ocr/OcrTrigger.svelte';
|
||||||
import TranscribeCoachEmptyState from '$lib/shared/help/TranscribeCoachEmptyState.svelte';
|
import TranscribeCoachEmptyState from '$lib/shared/help/TranscribeCoachEmptyState.svelte';
|
||||||
@@ -72,8 +71,8 @@ async function handleMarkAllReviewed() {
|
|||||||
markAllError = null;
|
markAllError = null;
|
||||||
try {
|
try {
|
||||||
await onMarkAllReviewed();
|
await onMarkAllReviewed();
|
||||||
} catch (e) {
|
} catch {
|
||||||
markAllError = getErrorMessage(e instanceof Error ? e.message : undefined);
|
markAllError = m.transcription_mark_all_reviewed_error();
|
||||||
} finally {
|
} finally {
|
||||||
markingAllReviewed = false;
|
markingAllReviewed = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user