@@ -38,6 +38,7 @@ public class DisplayPackageViewModel : ListPackageItemViewModel
3838 public bool IsPackageDeprecationEnabled { get ; set ; }
3939 public bool IsPackageVulnerabilitiesEnabled { get ; set ; }
4040 public bool IsFuGetLinksEnabled { get ; set ; }
41+ public bool IsNuGetTrendsLinksEnabled { get ; set ; }
4142 public bool IsNuGetPackageExplorerLinkEnabled { get ; set ; }
4243 public bool IsPackageRenamesEnabled { get ; set ; }
4344 public bool IsGitHubUsageEnabled { get ; set ; }
@@ -88,6 +89,7 @@ public bool HasNewerRelease
8889 public string ProjectUrl { get ; set ; }
8990 public string LicenseUrl { get ; set ; }
9091 public string FuGetUrl { get ; set ; }
92+ public string NuGetTrendsUrl { get ; set ; }
9193 public string NuGetPackageExplorerUrl { get ; set ; }
9294 public IReadOnlyCollection < string > LicenseNames { get ; set ; }
9395 public string LicenseExpression { get ; set ; }
@@ -146,6 +148,11 @@ public bool CanDisplayFuGetLink()
146148 return IsFuGetLinksEnabled && ! string . IsNullOrEmpty ( FuGetUrl ) && Available ;
147149 }
148150
151+ public bool CanDisplayNuGetTrendsLink ( )
152+ {
153+ return IsNuGetTrendsLinksEnabled && ! string . IsNullOrEmpty ( NuGetTrendsUrl ) && Available ;
154+ }
155+
149156 public bool CanDisplayTargetFrameworks ( )
150157 {
151158 return IsDisplayTargetFrameworkEnabled && ! Deleted && ! IsDotnetNewTemplatePackageType ;
@@ -166,4 +173,4 @@ public enum RepositoryKind
166173 GitHub ,
167174 }
168175 }
169- }
176+ }
0 commit comments