forked from 1b-agent/opencadstudio-upstream
Fix Properties hyperlink collection editor
This commit is contained in:
1 parent
bb29b987c2
commit
6a1c649016
11 files changed
+272
-13
No files matched your search
@@ -122,6 +122,7 @@ impl OpenCADStudio {
|
||||
PropValue::ReadOnly(v)|PropValue::ReadOnlyWithTooltip{value:v,..}=>("readonly",json!(v),Value::Null),
|
||||
PropValue::EditText(v)=>("number",json!(v),Value::Null),
|
||||
PropValue::PlainText(v)=>("text",json!(v),Value::Null),
|
||||
PropValue::Hyperlink(v)=>("hyperlink",json!(v),Value::Null),
|
||||
PropValue::Choice{selected,options}=>("choice",json!(selected),json!(options)),
|
||||
PropValue::EditChoice{value,options}=>("editable_choice",json!(value),json!(options)),
|
||||
PropValue::LayerChoice(v)=>("layer",json!(v),Value::Null),
|
||||
@@ -157,7 +158,10 @@ impl OpenCADStudio {
|
||||
.map(str::to_owned)
|
||||
.unwrap_or_else(|| req["value"].to_string());
|
||||
Ok(match p.value {
|
||||
PropValue::EditText(_) | PropValue::PlainText(_) | PropValue::EditChoice { .. } => {
|
||||
PropValue::EditText(_)
|
||||
| PropValue::PlainText(_)
|
||||
| PropValue::Hyperlink(_)
|
||||
| PropValue::EditChoice { .. } => {
|
||||
let input = self.update(Message::PropGeomInput {
|
||||
field: p.field,
|
||||
value,
|
||||
|
||||
Reference in new issue
Block a user