feat(ShowEnvelope): Wenn ReadOnly, machen Sie die Kopfzeile ViewDoc anstelle von SignDoc.

- ViewDoc-Schlüssel zu resx in beiden Sprachen hinzugefügt
This commit is contained in:
Developer 02
2024-10-16 11:55:48 +02:00
parent 7ff787ec28
commit 35d6beb3cb
4 changed files with 9 additions and 3 deletions

View File

@@ -9,9 +9,6 @@
@using Newtonsoft.Json
@using Newtonsoft.Json.Serialization
@model EnvelopeReceiverDto;
@{
ViewData["Title"] = _localizer[WebKey.SignDoc];
}
<partial name="_CookieConsentPartial" />
@{
var userCulture = ViewData["UserCulture"] as Culture;
@@ -26,6 +23,8 @@
var isReadOnly = false;
if (ViewData["IsReadOnly"] is bool isReadOnly_bool)
isReadOnly = isReadOnly_bool;
ViewData["Title"] = isReadOnly ? _localizer[WebKey.ViewDoc] : _localizer[WebKey.SignDoc];
}
<div class="envelope-view">
@if (!isReadOnly)

View File

@@ -34,5 +34,6 @@
public static readonly string RejectionInfo2_ext = nameof(RejectionInfo2_ext);
public static readonly string SigningProcessTitle = nameof(SigningProcessTitle);
public static readonly string WelcomeToTheESignPortal = nameof(WelcomeToTheESignPortal);
public static readonly string ViewDoc = nameof(ViewDoc);
}
}