Update Culture model and DI for non-nullable properties
Refactored Culture model to use required and non-nullable properties. Removed nullable checks for Info in ShowEnvelope.cshtml. Changed DI from Cultures to MultiCulture in _ViewImports.cshtml.
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
<p>
|
||||
<small class="text-body-secondary">
|
||||
@Html.Raw(_localizer.EnvelopeInfo2().Format(
|
||||
envelope?.AddedWhen.ToString(userCulture?.Info?.DateTimeFormat),
|
||||
envelope?.AddedWhen.ToString(userCulture?.Info.DateTimeFormat),
|
||||
$"{sender?.Prename} {sender?.Name}",
|
||||
sender?.Email,
|
||||
envelope?.Title,
|
||||
@@ -216,6 +216,6 @@
|
||||
var documentBase64String = Convert.ToBase64String(documentBytes);
|
||||
var envelopeKey = ViewData["EnvelopeKey"] as string;
|
||||
|
||||
@:document.addEventListener("DOMContentLoaded", async () => await new App("@envelopeKey", @Html.Raw(envelopeReceiverJson), B64ToBuff("@Html.Raw(documentBase64String)"), "@ViewData["PSPDFKitLicenseKey"]", "@userCulture?.Info?.TwoLetterISOLanguageName").init())
|
||||
@:document.addEventListener("DOMContentLoaded", async () => await new App("@envelopeKey", @Html.Raw(envelopeReceiverJson), B64ToBuff("@Html.Raw(documentBase64String)"), "@ViewData["PSPDFKitLicenseKey"]", "@userCulture?.Info.TwoLetterISOLanguageName").init())
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user