Adds saved objects to Management (#64926)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
03920249a6
commit
869f314697
|
@ -30,4 +30,12 @@ export const customElementType: SavedObjectsType = {
|
|||
},
|
||||
},
|
||||
migrations: {},
|
||||
management: {
|
||||
icon: 'canvasApp',
|
||||
defaultSearchField: 'name',
|
||||
importableAndExportable: true,
|
||||
getTitle(obj) {
|
||||
return obj.attributes.displayName;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -30,4 +30,18 @@ export const workpadType: SavedObjectsType = {
|
|||
migrations: {
|
||||
'7.0.0': removeAttributesId,
|
||||
},
|
||||
management: {
|
||||
importableAndExportable: true,
|
||||
icon: 'canvasApp',
|
||||
defaultSearchField: 'name',
|
||||
getTitle(obj) {
|
||||
return obj.attributes.name;
|
||||
},
|
||||
getInAppUrl(obj) {
|
||||
return {
|
||||
path: `/app/canvas#/workpad/${encodeURIComponent(obj.id)}`,
|
||||
uiCapabilitiesPath: 'canvas.show',
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue