@financial-times/n-myft-ui 28.3.0 → 28.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/myft/ui/lists.js +7 -1
  2. package/package.json +1 -1
package/myft/ui/lists.js CHANGED
@@ -60,6 +60,9 @@ function updateAfterAddToList (listId, contentId, wasAdded) {
60
60
  action: 'copy-success',
61
61
  article_id: contentId,
62
62
  list_id: listId,
63
+ content: {
64
+ uuid: contentId
65
+ },
63
66
  teamName: 'customer-products-us-growth',
64
67
  amplitudeExploratory: true
65
68
  },
@@ -85,7 +88,7 @@ function setUpSaveToExistingListListeners (overlay, contentId) {
85
88
  const listId = listSelect.options[listSelect.selectedIndex].value;
86
89
  myFtClient.add('list', listId, 'contained', 'content', contentId, { token: csrfToken })
87
90
  .then(detail => {
88
- updateAfterAddToList(detail.actorId, detail.subjectId, !!detail.results);
91
+ updateAfterAddToList(detail.actorId, detail.subject, !!detail.results);
89
92
  overlay.close();
90
93
  });
91
94
  });
@@ -252,6 +255,9 @@ function handleRemoveToggleSubmit (event) {
252
255
  action: action === 'add' ? 'add-success' : 'remove-success',
253
256
  article_id: contentId,
254
257
  list_id: listId,
258
+ content: {
259
+ uuid: contentId
260
+ },
255
261
  teamName: 'customer-products-us-growth',
256
262
  amplitudeExploratory: true
257
263
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "28.3.0",
3
+ "version": "28.3.1",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {