Add error handling for missing documents in DocumentCheckDialog

This commit is contained in:
Thorsten Sommer 2025-12-30 17:33:24 +01:00
parent 684da62983
commit 7f26c851c3
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -27,6 +27,14 @@
/> />
} }
@if (!this.Document?.Exists ?? false)
{
<MudAlert Severity="Severity.Error" Variant="Variant.Filled" Class="my-2">
@T("The specified file could not be found. The file have been moved, deleted, renamed, or is otherwise inaccessible.")
</MudAlert>
}
else
{
<MudTabs Elevation="0" Rounded="true" ApplyEffectsToContainer="true" Outlined="true" PanelClass="pa-2" Class="mb-2"> <MudTabs Elevation="0" Rounded="true" ApplyEffectsToContainer="true" Outlined="true" PanelClass="pa-2" Class="mb-2">
@if (this.Document?.IsImage ?? false) @if (this.Document?.IsImage ?? false)
{ {
@ -68,6 +76,7 @@
</MudTabPanel> </MudTabPanel>
} }
</MudTabs> </MudTabs>
}
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>