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:
parent
7f0996d986
commit
46cca8364d
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue