Fixed bug where deletes of artifact groupings would not cascade
This commit is contained in:
@@ -6,20 +6,22 @@
|
||||
|
||||
@page "/sr/{StringId}"
|
||||
|
||||
<MudCard Style="@($"cursor: pointer; height: {Height}px; display: flex; flex-direction: column;")" onclick="@NavigateToArchive" >
|
||||
@if (_displayImageId >= 0)
|
||||
{
|
||||
<MudCardMedia Image="@($"/api/files/{_displayImageId}")" Height="150" />
|
||||
}
|
||||
|
||||
<MudCardContent Style="flex-grow: 1; overflow-y: clip;">
|
||||
@if (ArtifactGrouping is not null)
|
||||
<MudLink Href="@($"/archive/{Id}")" Target="_blank" Style="text-decoration: none; color: inherit;">
|
||||
<MudCard Style="@($"cursor: pointer; height: {Height}px; display: flex; flex-direction: column;")">
|
||||
@if (_displayImageId >= 0)
|
||||
{
|
||||
<MudText Typo="Typo.h5">@ArtifactGrouping.Title</MudText>
|
||||
<MudText Typo="Typo.body2">@ArtifactGrouping.Description</MudText>
|
||||
<MudCardMedia Image="@($"/api/files/{_displayImageId}")" Height="150" />
|
||||
}
|
||||
</MudCardContent>
|
||||
</MudCard>
|
||||
|
||||
<MudCardContent Style="flex-grow: 1; overflow-y: clip;">
|
||||
@if (ArtifactGrouping is not null)
|
||||
{
|
||||
<MudText Typo="Typo.h5">@ArtifactGrouping.Title</MudText>
|
||||
<MudText Typo="Typo.body2">@ArtifactGrouping.Description</MudText>
|
||||
}
|
||||
</MudCardContent>
|
||||
</MudCard>
|
||||
</MudLink>
|
||||
@inject IArtifactGroupingProvider GroupingProvider;
|
||||
@inject NavigationManager NavigationManager;
|
||||
@code {
|
||||
@@ -71,18 +73,9 @@
|
||||
{
|
||||
_displayImageId = ArtifactGrouping.ChildArtifactEntries[0].Files[0].Id;
|
||||
}
|
||||
Id = ArtifactGrouping.Id;
|
||||
}
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task NavigateToArchive()
|
||||
{
|
||||
await Task.Delay(4);
|
||||
if (ArtifactGrouping is not null)
|
||||
{
|
||||
NavigationManager.NavigateTo($"/archive/{ArtifactGrouping.Id}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user