diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-18 14:18:50 +0300 |
commit | 8c7f4e9d5f36cff46365a7f8c4b9c21578c1e781 (patch) | |
tree | a77e7fe7a93de11213032ed4ab1f33a3db51b738 /app/assets/javascripts/design_management/utils/design_management_utils.js | |
parent | 00b35af3db1abfe813a778f643dad221aad51fca (diff) |
Add latest changes from gitlab-org/gitlab@13-1-stable-ee
Diffstat (limited to 'app/assets/javascripts/design_management/utils/design_management_utils.js')
-rw-r--r-- | app/assets/javascripts/design_management/utils/design_management_utils.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/design_management/utils/design_management_utils.js b/app/assets/javascripts/design_management/utils/design_management_utils.js index e6d8796ffa4..22705cf67a1 100644 --- a/app/assets/javascripts/design_management/utils/design_management_utils.js +++ b/app/assets/javascripts/design_management/utils/design_management_utils.js @@ -21,8 +21,9 @@ export const extractNodes = elements => elements.edges.map(({ node }) => node); */ export const extractDiscussions = discussions => - discussions.nodes.map(discussion => ({ + discussions.nodes.map((discussion, index) => ({ ...discussion, + index: index + 1, notes: discussion.notes.nodes, })); @@ -123,3 +124,5 @@ const normalizeAuthor = author => ({ }); export const extractParticipants = users => users.edges.map(({ node }) => normalizeAuthor(node)); + +export const getPageLayoutElement = () => document.querySelector('.layout-page'); |