Add generic section icon in section picker + clean up legacy section icon stuff
This commit is contained in:
committed by
Sebastiaan Janssen
parent
4cc68912ce
commit
1c554a8770
@@ -11,9 +11,6 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[DataMember(Name = "cssclass")]
|
||||
public string Icon { get; set; }
|
||||
|
||||
[DataMember(Name = "alias")]
|
||||
public string Alias { get; set; }
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Umbraco.Web.Models.Mapping
|
||||
{
|
||||
CreateMap<ISection, Section>()
|
||||
.ForMember(dest => dest.RoutePath, opt => opt.Ignore())
|
||||
.ForMember(dest => dest.Icon, opt => opt.Ignore())
|
||||
.ForMember(dest => dest.Name, opt => opt.MapFrom(src => textService.Localize("sections/" + src.Alias, (IDictionary<string, string>)null)))
|
||||
.ReverseMap(); //backwards too!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user