refactor(EnvelopeLocked): envelopeRecevier-Modell aus der Ansicht entfernt.

This commit is contained in:
Developer 02 2024-11-28 23:56:18 +01:00
parent 4b77713df4
commit 551ba595b6
2 changed files with 2 additions and 9 deletions

View File

@ -134,7 +134,7 @@ namespace EnvelopeGenerator.Web.Controllers
ViewData["UserCulture"] = _cultures[UserLanguage];
return await _envRcvService.ReadByEnvelopeReceiverIdAsync(envelopeReceiverId: envelopeReceiverId).ThenAsync(
Success: er => View(er).WithData("EnvelopeKey", envelopeReceiverId),
Success: er => View().WithData("EnvelopeKey", envelopeReceiverId),
Fail: IActionResult (messages, notices) =>
{
_logger.LogNotice(notices);

View File

@ -1,5 +1,4 @@
@using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
@model EnvelopeReceiverDto;
@{
var nonce = _accessor.HttpContext?.Items["csp-nonce"] as string;
var logo = _logoOpt.Value;
@ -52,9 +51,3 @@
</details>
</section>
</div>
@if (Model.HasPhoneNumber)
{
<script nonce="@nonce">
console.log("has phone number")
</script>
}