Make url saved object in SO app clickable (#106646)
This commit is contained in:
parent
8f16ad3657
commit
0df0255bbf
|
@ -106,7 +106,9 @@ const SavedObjectsTablePage = ({
|
|||
}}
|
||||
canGoInApp={(savedObject) => {
|
||||
const { inAppUrl } = savedObject.meta;
|
||||
return inAppUrl ? Boolean(get(capabilities, inAppUrl.uiCapabilitiesPath)) : false;
|
||||
if (!inAppUrl) return false;
|
||||
if (!inAppUrl.uiCapabilitiesPath) return true;
|
||||
return Boolean(get(capabilities, inAppUrl.uiCapabilitiesPath));
|
||||
}}
|
||||
/>
|
||||
</ContextWrapper>
|
||||
|
|
|
@ -19,6 +19,12 @@ export const url: SavedObjectsType = {
|
|||
getTitle(obj) {
|
||||
return `/goto/${encodeURIComponent(obj.id)}`;
|
||||
},
|
||||
getInAppUrl(obj) {
|
||||
return {
|
||||
path: '/goto/' + encodeURIComponent(obj.id),
|
||||
uiCapabilitiesPath: '',
|
||||
};
|
||||
},
|
||||
},
|
||||
mappings: {
|
||||
properties: {
|
||||
|
|
Loading…
Reference in a new issue