describo / crate-builder-component

A VueJS UI component to build an RO-Crate
MIT License
6 stars 3 forks source link

Profile: input label is not used #45

Closed beepsoft closed 1 year ago

beepsoft commented 1 year ago

It seems that label defined in inputs in a Profile is not used when displaying the input's name.

I tried changing in test-profile-without-groups.json

            "inputs": [
                {
                    "id": "https://schema.org/date",
                    "name": "date",
                    "label": "Date",
                    "help": "Attach a date",
                    "type": ["Geo"],
                    "required": true,
                    "multiple": false
                }
            ]

to

            "inputs": [
                {
                    "id": "https://schema.org/date",
                    "name": "date",
                    "label": "Custom date label",
                    "help": "Attach a date",
                    "type": ["Geo"],
                    "required": true,
                    "multiple": false
                }
            ]

I expected to see "Custom date label", but I still got "Date", which is derived from the value of name.

beepsoft commented 1 year ago

Thanks for the quick fix!