Reverse IsReadAndConfirm logic for envelope status texts

Swapped the display logic for localized titles and messages based on the IsReadAndConfirm flag. Now, "confirmed" texts are shown when IsReadAndConfirm is true, and "signed" texts when false. This update ensures correct status messaging throughout the envelope confirmation flow.
This commit is contained in:
2026-03-06 09:17:17 +01:00
parent e095860b17
commit f1e38e3bd3

View File

@@ -4,8 +4,8 @@
@model EnvelopeReceiverDto;
bool IsReadAndConfirm = Model!.Envelope!.IsReadAndConfirm();
ViewData["Title"] = IsReadAndConfirm
? _localizer.DocSigned()
: _localizer.DocConfirmed();
? _localizer.DocConfirmed()
: _localizer.DocSigned();
}
<div class="page container p-5">
<header class="text-center">
@@ -16,12 +16,12 @@
</svg>
</div>
<h1>@(IsReadAndConfirm
? _localizer["DocumentSuccessfullySigned"]
: _localizer["DocumentSuccessfullyConfirmed"])</h1>
? _localizer["DocumentSuccessfullyConfirmed"]
: _localizer["DocumentSuccessfullySigned"])</h1>
</header>
<section class="text-center">
<p>@(IsReadAndConfirm
? _localizer["DocumentSignedConfirmationMessage"]
: _localizer["DocumentConfirmedConfirmationMessage"])</p>
? _localizer["DocumentConfirmedConfirmationMessage"]
: _localizer["DocumentSignedConfirmationMessage"])</p>
</section>
</div>