Refactor VerificationSettingsDialog and UploadVerification: update modal title, adjust button styles, and enhance upload instructions
This commit is contained in:
@@ -42,14 +42,14 @@ namespace FoodsharingSiegen.Server.Dialogs
|
||||
|
||||
public static async Task ShowAsync(IModalService modalService, Prospect? prospect, Func<Task>? onDataChanged)
|
||||
{
|
||||
var title = "Identitätsprüfung Einstellungen";
|
||||
var title = "Identitätsprüfung";
|
||||
var action = new Action<ModalProviderParameterBuilder<VerificationSettingsDialog>>(b =>
|
||||
{
|
||||
b.Add(nameof(Prospect), prospect);
|
||||
b.Add(nameof(OnDataChanged), onDataChanged);
|
||||
});
|
||||
|
||||
await modalService.Show(title, action, new ModalInstanceOptions { Size = ModalSize.Large });
|
||||
await modalService.Show(title, action, new ModalInstanceOptions { Size = ModalSize.Default });
|
||||
}
|
||||
|
||||
private async Task GenerateLinkAsync()
|
||||
@@ -101,7 +101,8 @@ namespace FoodsharingSiegen.Server.Dialogs
|
||||
if (result.Success)
|
||||
{
|
||||
ImageCount = 0;
|
||||
StateHasChanged();
|
||||
|
||||
if(OnDataChanged != null) await OnDataChanged();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user