@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.
- package/myft/ui/lists.js +7 -1
- 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.
|
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
|
},
|