Fixes: U4-7021 "Actions" dropdown not available to children in listview nodes
This commit is contained in:
@@ -35,11 +35,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
.ForMember(
|
||||
dto => dto.ContentTypeAlias,
|
||||
expression => expression.MapFrom(content => content.ContentType.Alias))
|
||||
.ForMember(
|
||||
dto => dto.IsChildOfListView,
|
||||
//TODO: Fix this shorthand .Parent() lookup, at least have an overload to use the current
|
||||
// application context so it's testable!
|
||||
expression => expression.MapFrom(content => content.Parent().ContentType.IsContainer))
|
||||
.ForMember(display => display.IsChildOfListView, expression => expression.Ignore())
|
||||
.ForMember(
|
||||
dto => dto.Trashed,
|
||||
expression => expression.MapFrom(content => content.Trashed))
|
||||
|
||||
Reference in New Issue
Block a user