From d4e3794c99b5ce974adba8fe407f2c0c63983c0f Mon Sep 17 00:00:00 2001 From: malik masis Date: Tue, 26 Jul 2022 13:17:45 +0300 Subject: [PATCH] Updated component view names --- .../host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml | 4 ++-- .../ViewComponents/FormatViewComponent.cs | 4 ++-- .../host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml index 89d24ec933..de58a49679 100644 --- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml +++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Format.cshtml @@ -1,6 +1,6 @@ @using Volo.CmsKit.ViewComponents -@model DecisionCommentDateViewModel +@model FormatViewModel -
+
diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs index cd99aabb6d..af53a3e8f1 100644 --- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs +++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/FormatViewComponent.cs @@ -19,11 +19,11 @@ public class FormatViewComponent : AbpViewComponent public virtual async Task InvokeAsync() { - return View("~/ViewComponents/Format.cshtml", new DecisionCommentDateViewModel()); + return View("~/ViewComponents/Format.cshtml", new FormatViewModel()); } } -public class DecisionCommentDateViewModel +public class FormatViewModel { [DisplayName("Format your date in the component")] public string Format { get; set; } diff --git a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml index 9cc7d5717a..a63170e67f 100644 --- a/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml +++ b/modules/cms-kit/host/Volo.CmsKit.Web.Unified/ViewComponents/Today.cshtml @@ -2,4 +2,4 @@

Welcome Today Component

-

@DateTime.Now.ToString(Model.Format)

+

@DateTime.Now.ToString(Model.Format)