mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -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:
parent
7f0996d986
commit
46cca8364d
1 changed files with 9 additions and 0 deletions
|
@ -45,6 +45,15 @@ function getLinkTarget(ev) {
|
||||||
route: 'editor.edit',
|
route: 'editor.edit',
|
||||||
models: [resourceType, ev.resource.id]
|
models: [resourceType, ev.resource.id]
|
||||||
};
|
};
|
||||||
|
case 'integration':
|
||||||
|
if (!ev.resource.id) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
route: 'settings.integration',
|
||||||
|
models: [ev.resource.id]
|
||||||
|
};
|
||||||
case 'tag':
|
case 'tag':
|
||||||
if (!ev.resource.slug) {
|
if (!ev.resource.slug) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue