From a835f9bc27a483aa6457603786a2a18d1bc80993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Sat, 15 Aug 2020 21:34:06 +0300 Subject: [PATCH] Use AbpMvcOptions to get the login url --- .../cms-kit/src/Volo.CmsKit.Common.Web/CmsKitUiOptions.cs | 6 ------ .../Shared/Components/Commenting/CommentingViewComponent.cs | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Common.Web/CmsKitUiOptions.cs b/modules/cms-kit/src/Volo.CmsKit.Common.Web/CmsKitUiOptions.cs index 718284e042..b04ae26fb6 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Common.Web/CmsKitUiOptions.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Common.Web/CmsKitUiOptions.cs @@ -8,15 +8,9 @@ namespace Volo.CmsKit.Web [NotNull] public ReactionIconDictionary ReactionIcons { get; } - /// - /// Default value: "/Account/Login". - /// - public string LoginUrl { get; set; } //TODO: Consider to move to the ABP Framework! - public CmsKitUiOptions() { ReactionIcons = new ReactionIconDictionary(); - LoginUrl = "/Account/Login"; } } } diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/CommentingViewComponent.cs b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/CommentingViewComponent.cs index 924add7a6c..803119f50f 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/CommentingViewComponent.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Commenting/CommentingViewComponent.cs @@ -19,11 +19,11 @@ namespace Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Commenting public class CommentingViewComponent : AbpViewComponent { public ICommentPublicAppService CommentPublicAppService { get; } - public CmsKitUiOptions Options { get; } + public AbpMvcOptions AbpMvcOptions { get; } public CommentingViewComponent( ICommentPublicAppService commentPublicAppService, - IOptions options) + IOptions options) { CommentPublicAppService = commentPublicAppService; Options = options.Value;