0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Added integration resource linking

refs https://github.com/TryGhost/Toolbox/issues/356

- now we have an easy way to do it, linking the integration resource in
  is trivial
This commit is contained in:
Daniel Lockyer 2022-08-23 18:06:12 +02:00
parent 7f0996d986
commit 46cca8364d
No known key found for this signature in database
GPG key ID: D21186F0B47295AD

View file

@ -45,6 +45,15 @@ function getLinkTarget(ev) {
route: 'editor.edit',
models: [resourceType, ev.resource.id]
};
case 'integration':
if (!ev.resource.id) {
return null;
}
return {
route: 'settings.integration',
models: [ev.resource.id]
};
case 'tag':
if (!ev.resource.slug) {
return null;