Adds saved objects to Management (#64926)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Corey Robertson 2020-05-04 19:39:04 -04:00 committed by GitHub
parent 03920249a6
commit 869f314697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View file

@ -30,4 +30,12 @@ export const customElementType: SavedObjectsType = {
},
},
migrations: {},
management: {
icon: 'canvasApp',
defaultSearchField: 'name',
importableAndExportable: true,
getTitle(obj) {
return obj.attributes.displayName;
},
},
};

View file

@ -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',
};
},
},
};