From 3b21463fb6fac9d5faef8eb53c65422bbaa90693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Onur=20P=C4=B1=C3=A7akc=C4=B1?= <98148844+onurpicakci@users.noreply.github.com> Date: Wed, 3 May 2023 14:03:46 +0300 Subject: [PATCH] cms-kit: added admin side enhancements --- .../CmsKit/Admin/Comments/CommentWithAuthorDto.cs | 2 ++ .../Pages/CmsKit/Comments/index.js | 11 +++++++++++ .../Volo/CmsKit/Localization/Resources/en.json | 3 ++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Comments/CommentWithAuthorDto.cs b/modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Comments/CommentWithAuthorDto.cs index ab833cfb3b..be4225f535 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Comments/CommentWithAuthorDto.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Admin.Application.Contracts/Volo/CmsKit/Admin/Comments/CommentWithAuthorDto.cs @@ -20,4 +20,6 @@ public class CommentWithAuthorDto public DateTime CreationTime { get; set; } public CmsUserDto Author { get; set; } + + public string CommentUrl { get; set; } } diff --git a/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js b/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js index 728a204f4c..dcd64d6fd9 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js +++ b/modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Comments/index.js @@ -114,6 +114,17 @@ $(function (){ return ""; } }, + { + title: l("CommentUrl"), + data: "commentUrl", + render: function (data, type, row) { + console.log(data); + if (data !== null) { + return ''; + } + return ""; + } + }, { title: l("Text"), data: "text", diff --git a/modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json b/modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json index 2f7d8ce13d..b3216609b9 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json +++ b/modules/cms-kit/src/Volo.CmsKit.Domain.Shared/Volo/CmsKit/Localization/Resources/en.json @@ -217,6 +217,7 @@ "CommentTextRequired": "Comment is required", "CaptchaCodeErrorMessage" : "The answer you entered for the CAPTCHA was not correct. Please try again", "CaptchaCodeMissingMessage": "The captcha code is missing!", - "UnAllowedExternalUrlMessage": "You included an unallowed external URL. Please try again without the external URL." + "UnAllowedExternalUrlMessage": "You included an unallowed external URL. Please try again without the external URL.", + "CommentUrl": "Comment Url" } } \ No newline at end of file