ASPNETZERO 6.6.1, Angular, .NET Framework
I have a couple of features (boolean type) with child-features (value-type).
On client-side, when selecting an edition before registering a new tenant, I can see child-features being displayed although their parent-feature isn't activated (set to true) in that specific edition. Is this behaviour intended or is this a bug?
I would expect child-features to not be displayed when their parent-feature is not activated.
EDIT
A quick look on the source code (select-edition.component.html
) shows that inactive feature also should be displayed, including an icon that indicates that a feature is inactive. But this does not happen in my case ... I can only see child-features, but no parent-features (no matter if active or not).
EDIT
TenantRegistrationAppService.GetEditionsForSelect()
contains an interesting query:
var flatFeatures = ObjectMapper
.Map<List<FlatFeatureSelectDto>>(features)
.OrderBy(f => f.DisplayName)
.ToList();
It looks like this should create a list of all features without hierarchy. It's result is being displayed in select-edition.component.html
. But it only contains value-feature-types. Maybe there's something wrong with the mapping? I don't think it is intended this way.
2 Answer(s)
-
0
Could you create an issue on https://github.com/aspnetzero/aspnet-zero-core/issues so we can add this to next milestone ?
-
0
Hello @ismcagdas!
I was able to solve the problem - which was just me not understanding how feature declaration works :D
Sorry, I wanted to post an update here but then I forgot about it ...
Anyway, thanks for your reply!