Browse Source

Used EditorComponentName istead of InternalName

pull/13242/head
malik masis 4 years ago
parent
commit
43aeec3cb6
  1. 7
      modules/cms-kit/src/Volo.CmsKit.Admin.Application/Volo/CmsKit/Admin/Contents/ContentAdminAppService.cs
  2. 6
      modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentWidgetConfig.cs

7
modules/cms-kit/src/Volo.CmsKit.Admin.Application/Volo/CmsKit/Admin/Contents/ContentAdminAppService.cs

@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using Volo.Abp.Application.Dtos;
@ -25,9 +24,9 @@ public class ContentAdminAppService : CmsKitAdminAppServiceBase, IContentAdminAp
new ContentWidgetDto
{
Key = n.Key,
Details = new WidgetDetailDto() { EditorComponentName = n.Value.InternalName, Name = n.Value.Name },
Details = new WidgetDetailDto() { EditorComponentName = n.Value.EditorComponentName, Name = n.Value.Name },
}).ToList()
});
}
}
}

6
modules/cms-kit/src/Volo.CmsKit.Common.Application/Volo/CmsKit/Contents/ContentWidgetConfig.cs

@ -3,12 +3,12 @@
public class ContentWidgetConfig
{
public string Name { get; }
public string InternalName { get; }
public string EditorComponentName { get; }
public ContentWidgetConfig(string widgetName, string internalName)
public ContentWidgetConfig(string widgetName, string editorComponentName)
{
Name = widgetName;
InternalName = internalName;
EditorComponentName = editorComponentName;
}
}
Loading…
Cancel
Save