Rename 'Deleted' state to 'Archived' and update related logic
Replaced 'Deleted' with 'Archived' across the codebase to better reflect the intent of the state. Adjusted related features, including filters, UI labels, navigation, and permissions. Introduced a 'Recent Activity' filter for improved activity tracking.
This commit is contained in:
@@ -55,13 +55,13 @@ namespace FoodsharingSiegen.Server.Controls
|
||||
/// Deletes the currently selected prospect after user confirmation. This action is irreversible and will update the record state to "Deleted".
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous delete operation.</returns>
|
||||
private async Task DeleteProspectAsync()
|
||||
private async Task ArchiveProspectAsync()
|
||||
{
|
||||
if (Prospect == null) return;
|
||||
|
||||
await ConfirmDialog.ShowAsync(ModalService, $"⚠️ {Prospect.Name} löschen", $"Soll {Prospect.Name} mit der FS-ID {Prospect.FsId} wirklich gelöscht werden? Das kann nicht rückgängig gemacht werden!!", async () =>
|
||||
await ConfirmDialog.ShowAsync(ModalService, $"{Prospect.Name} archivieren", $"Soll {Prospect.Name} mit der FS-ID {Prospect.FsId} wirklich ins Archiv verschoben werden?", async () =>
|
||||
{
|
||||
Prospect.RecordState = RecordState.Deleted;
|
||||
Prospect.RecordState = RecordState.Archived;
|
||||
var updateR = await ProspectService.UpdateAsync(Prospect);
|
||||
if (updateR.Success && OnDataChanged != null) await OnDataChanged();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user