Review closed semantic constructor groups with retained typed drafts
This commit is contained in:
@@ -45,7 +45,11 @@ pub(super) fn variants(
|
||||
let current = draft.context_value();
|
||||
let sa = current.pointer("/body/Sa").is_some();
|
||||
if !sa {
|
||||
return Some(vec![]);
|
||||
return Some(if draft.semantic_groups {
|
||||
vec![("Legacy generic port".into(), json!("Legacy"))]
|
||||
} else {
|
||||
vec![]
|
||||
});
|
||||
}
|
||||
let owner = current
|
||||
.get("parent")
|
||||
@@ -69,6 +73,9 @@ pub(super) fn variants(
|
||||
json!({"Component":{"kind":"Standard","orientation":"Unset"}}),
|
||||
));
|
||||
}
|
||||
if draft.semantic_groups {
|
||||
choices.push(("Legacy generic port".into(), json!("Legacy")));
|
||||
}
|
||||
return Some(choices);
|
||||
}
|
||||
if path.ends_with("/Port/contract/Component/kind") {
|
||||
|
||||
Reference in New Issue
Block a user