Consolidated repeated methods for interaction/user deletion into reusable components to improve maintainability. Introduced a `ConfirmDialog` for consistent confirmation UI and streamlined associated logic across pages. Removed redundant methods and enhanced admin-specific page security checks.
21 lines
477 B
Plaintext
21 lines
477 B
Plaintext
@page "/all"
|
|
|
|
@using FoodsharingSiegen.Shared.Helper
|
|
@inherits FsBase
|
|
|
|
<PageTitle>Alle (Admin) - @AppSettings.Terms.Title</PageTitle>
|
|
|
|
<h2>Alle (Admin)</h2>
|
|
|
|
@{
|
|
var filterList = ProspectList.ApplyFilter(Filter);
|
|
}
|
|
|
|
<hr/>
|
|
<ProspectFilterControl @bind-Filter="Filter" StateFilter="ProspectStateFilter.All"></ProspectFilterControl>
|
|
<hr />
|
|
<ProspectGrid
|
|
Prospects="filterList"
|
|
OnDataChanged="@LoadProspects"
|
|
StateFilter="ProspectStateFilter.All">
|
|
</ProspectGrid> |