Skip to content

Commit b9a7f73

Browse files
authored
Add missing services to fix linked projects list (#1646)
- Ticket: [ENG-3511] ## Purpose The linked projects list in the project analytics engine wasn't rendering. It looks like, sometime after we implemented the list, we added the toast and current-user services to the node-card (or something in the node-card chain). Those services weren't in the analytics engine, so the rendering of the node-card broke. This corrects that problem. ## Summary of Changes 1. Add missing services to engine
1 parent c78d9cf commit b9a7f73

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

app/app.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const App = Application.extend({
6767
services: [
6868
'intl',
6969
'cookies',
70+
'current-user',
7071
'store',
7172
'analytics',
7273
'ready',
@@ -76,6 +77,7 @@ const App = Application.extend({
7677
'head-data',
7778
'osf-modal-state',
7879
'osf-router',
80+
'toast',
7981
],
8082
externalRoutes: {
8183
nodeForks: 'guid-node.forks',

lib/analytics-page/addon/engine.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const Eng = Engine.extend({
1212
services: [
1313
'intl',
1414
'cookies',
15+
'current-user',
1516
'store',
1617
'analytics',
1718
'ready',
@@ -21,6 +22,7 @@ const Eng = Engine.extend({
2122
'osf-router',
2223
'page-title-list',
2324
'head-data',
25+
'toast',
2426
],
2527
externalRoutes: [
2628
'nodeForks',

0 commit comments

Comments
 (0)