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