Commit 7bcd4a3
committed
Excluded relationships and nested topics from
In general, the use cases for the `ReflexiveAttribute`—such as a `DefaultValue` or an `ImplicitValue`—don't really make sense with relationships or nested topics. We may revisit this later, but for now we're excluding `AttributeDescriptorViewModel`s with a `ModelType` of either `Relationship` or `NestedTopic`.
As part of this, I refactored the `isReflexive` variable to a new `isSupported` variable, which relies on the `Model.AttributeDescriptor.ModelType` instead of the `Model.CurrentTopic.ContentType`. This effectively accomplishes the same thing, but allows isn't specific to any one attribute type, instead factoring in how the data is stored.
This finalize the implementation of #44.ReflexiveAttribute
1 parent 0a216eb commit 7bcd4a3
1 file changed
Lines changed: 11 additions & 5 deletions
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | | - | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
0 commit comments