Skip to content

Commit 6ced07e

Browse files
authored
in GUI Editor show title of new property type if specified (#764)
* in GUI Editor show title of new property type if specified * apply formatting changes --------- Co-authored-by: Logende <[email protected]>
1 parent 7d75089 commit 6ced07e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

meta_configurator/src/components/panels/gui-editor/PropertiesPanel.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,9 @@ function zoomIntoPath(path: Path) {
619619
:data-testid="'add-property-' + pathToString((slotProps.node.data.absolutePath as Path).slice(0,-1))">
620620
<Button text severity="secondary" class="text-gray-500" style="margin-left: -1.5rem">
621621
<i class="pi pi-plus" />
622-
<span class="pl-2">New property</span>
622+
<span class="pl-2">{{
623+
'New ' + (slotProps.node.data.schema.title ?? 'property')
624+
}}</span>
623625
</Button>
624626
</span>
625627

0 commit comments

Comments
 (0)