diff --git a/src/Umbraco.Community.SimpleDashboards.sln b/src/Umbraco.Community.SimpleDashboards.sln index 8a5f6bb..26be9dd 100644 --- a/src/Umbraco.Community.SimpleDashboards.sln +++ b/src/Umbraco.Community.SimpleDashboards.sln @@ -40,7 +40,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Github", "Github", "{5830A8 ProjectSection(SolutionItems) = preProject ..\.github\workflows\release.yml = ..\.github\workflows\release.yml ..\.github\workflows\build.yml = ..\.github\workflows\build.yml - ..\.github\dependabot.yml = ..\.github\dependabot.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Umbraco.Community.SimpleDashboards.TestSite", "Umbraco.Community.SimpleDashboards.TestSite\Umbraco.Community.SimpleDashboards.TestSite.csproj", "{E043765D-AF26-4CA8-8D18-837C36BFA967}" diff --git a/src/Umbraco.Community.SimpleDashboards/Web/SimpleDashboard.cs b/src/Umbraco.Community.SimpleDashboards/Web/SimpleDashboard.cs index 5bad458..1db5726 100644 --- a/src/Umbraco.Community.SimpleDashboards/Web/SimpleDashboard.cs +++ b/src/Umbraco.Community.SimpleDashboards/Web/SimpleDashboard.cs @@ -1,5 +1,6 @@ using Humanizer; using Umbraco.Community.SimpleDashboards.Core.Models; +using Umbraco.Extensions; namespace Umbraco.Community.SimpleDashboards.Web; @@ -8,7 +9,7 @@ public abstract class SimpleDashboard : ISimpleDashboard public virtual string ViewPath => $"~/Views/Dashboards/{Alias}.cshtml"; public virtual string ViewComponent => $"{Alias}Dashboard"; public virtual string Label => Name; - public string Alias => GetType().Name.TrimEnd("Dashboard"); + public string Alias => GetType().Name.TrimEndExact("Dashboard"); public string PathName => Alias.Kebaberize(); public virtual int Weight => 100; public virtual string Name => Alias;