mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-15 11:01:37 +00:00
Add error handling for missing documents in DocumentCheckDialog
This commit is contained in:
parent
684da62983
commit
7f26c851c3
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user