diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs index f8b17ed2fa..c68d25d1e8 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml.cs @@ -78,7 +78,7 @@ namespace Volo.Docs.Pages.Documents.Project public bool FullSearchEnabled { get; set; } - public bool IsLatestVersion => Version == LatestVersionInfo.Version; + public bool IsLatestVersion { get; private set; } private const int MaxDescriptionMetaTagLength = 200; private readonly IDocumentAppService _documentAppService; @@ -335,6 +335,8 @@ namespace Volo.Docs.Pages.Documents.Project Value = CreateVersionLink(LatestVersionInfo, v.Version, DocumentName), Selected = v.IsSelected }).ToList(); + + IsLatestVersion = Version == LatestVersionInfo.Version; } private VersionInfoViewModel GetLatestVersionInfo(List versions)