Skip to content

Commit

Permalink
Only go into code edit mode if we are adding a custom Action
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Oct 24, 2023
1 parent 9a51265 commit a9b7a83
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/runtimePipelineYazzUiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,8 @@
id: mm.new_property_id,
name: mm.new_property_name,
type: mm.new_property_type,
default: defaultVal
default: defaultVal,
custom: "true"
}
if (mm.new_property_type == "Action") {
newProperty.pre_snippet = "await "
Expand All @@ -950,12 +951,14 @@
setTimeout(async function() {
mm.refresh ++
mm.select_app()
await mm.editAsCode({
app_selected: true,
active_form: mm.active_form,
active_component_index: mm.active_component_index,
property_id: mm.new_property_id
})
if (mm.new_property_type == "Action") {
await mm.editAsCode({
app_selected: true,
active_form: mm.active_form,
active_component_index: mm.active_component_index,
property_id: mm.new_property_id
})
}
}
,100)

Expand Down
4 changes: 4 additions & 0 deletions src/runtimePipelineYazzUiTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,10 @@ Pushlist
}'
> ..
</div>
<div v-if="property.custom == 'true'"
style='margin-left:5px;margin-top:2px;margin-bottom:2px;border-right: 2px solid gray;border-bottom: 2px solid gray;background-color: darkgray;float: right; padding:0px; padding-right:5px;padding-left:20px;height: 20px;color: white;border-radius: 3px;font-family:verdana,helvetica;font-size: 13px;font-style:bold;'
>*</div>
</div>
<div style='display:flex;width:57%;padding:0px;padding-left:3px; border-left: 1px solid lightgray;'
Expand Down

0 comments on commit a9b7a83

Please sign in to comment.