Refactor VerificationSettingsDialog and UploadVerification: update modal title, adjust button styles, and enhance upload instructions
This commit is contained in:
@@ -3,16 +3,18 @@
|
||||
|
||||
<div class="mt-1 mb-3">
|
||||
<div class="d-grid gap-3">
|
||||
|
||||
@if (ShowLinkPanel)
|
||||
{
|
||||
<div class="border p-3 rounded">
|
||||
<p class="mb-2 text-muted">Kopiere diesen Link und teile ihn mit <strong>@Prospect?.Name</strong>:</p>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" value="@LinkUrl" readonly />
|
||||
<Button Color="Color.Secondary" Clicked="CopyLink"><i class="fa-solid fa-copy"></i></Button>
|
||||
<div>
|
||||
<input type="text" class="form-control" value="@LinkUrl" readonly /><br />
|
||||
<Button Color="Color.Secondary" Clicked="CopyLink" Style="width: 100%;">
|
||||
<i class="fa-solid fa-copy mr-2"></i>Link kopieren
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Button Color="Color.Light" Clicked="@(() => ModalService.Hide())">Schließen</Button>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -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