Skip to content

Commit

Permalink
GH-42 :: Refactor video embed widget
Browse files Browse the repository at this point in the history
  • Loading branch information
kentico-matthews committed Apr 11, 2024
1 parent 25fed20 commit 013be6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/TrainingGuides.Web/ComponentIdentifiers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using TrainingGuides.Web.Features.Shared.Sections.FormColumn;
using TrainingGuides.Web.Features.Shared.Sections.General;
using TrainingGuides.Web.Features.Shared.Sections.SingleColumn;
using TrainingGuides.Web.Features.Videos.Widgets.VideoEmbed;

namespace TrainingGuides.Web;

Expand All @@ -34,5 +35,6 @@ public static class Widgets
public const string ARTICLE_LIST = ArticleListWidgetViewComponent.IDENTIFIER;
public const string SIMPLE_CALL_TO_ACTION = SimpleCallToActionWidgetViewComponent.IDENTIFIER;
public const string PRODUCT = ProductWidgetViewComponent.IDENTIFIER;
public const string VIDEO_EMBED = VideoEmbedWidgetViewComponent.IDENTIFIER;
}
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@model DancingGoat.Widgets.VideoEmbedWidgetViewModel
@model TrainingGuides.Web.Features.Videos.Widgets.VideoEmbed.VideoEmbedWidgetViewModel
@Html.Raw(Model.Markup)
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace TrainingGuides.Web.Features.Videos.Widgets.VideoEmbed;

public class VideoEmbedWidgetViewComponent : ViewComponent
{
public const string IDENTIFIER = "DancingGoat.VideoEmbedWidget";
public const string IDENTIFIER = "TrainingGuides.VideoEmbedWidget";

private readonly IStringLocalizer<SharedResources> localizer;

Expand Down

0 comments on commit 013be6a

Please sign in to comment.