Chore: use visualization name in field config header (#27579)

This commit is contained in:
Ryan McKinley 2020-09-14 11:27:17 -07:00 committed by GitHub
parent 0ae534a7f0
commit c180facba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,7 +317,7 @@ export class PanelPlugin<TOptions = any, TFieldConfigOptions extends object = an
for (const customProp of builder.getRegistry().list()) {
customProp.isCustom = true;
customProp.category = ['Custom options'].concat(customProp.category || []);
customProp.category = [`${this.meta.name} options`].concat(customProp.category || []);
// need to do something to make the custom items not conflict with standard ones
// problem is id (registry index) is used as property path
// so sort of need a property path on the FieldPropertyEditorItem