From 5089ae40667adac12f71b7c1f46c749c14039c43 Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Wed, 15 Nov 2023 08:09:18 +0100 Subject: [PATCH] feat: Improve Achievements link processing - MEED-2917 - Meeds-io/MIPs#104 (#126) This change will allow to add direct link to achievements made by user. --- .../webapp/vue-app/engagementCenterExtensions/extensions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gamification-github-webapp/src/main/webapp/vue-app/engagementCenterExtensions/extensions.js b/gamification-github-webapp/src/main/webapp/vue-app/engagementCenterExtensions/extensions.js index 65557c6d..00e88f8d 100644 --- a/gamification-github-webapp/src/main/webapp/vue-app/engagementCenterExtensions/extensions.js +++ b/gamification-github-webapp/src/main/webapp/vue-app/engagementCenterExtensions/extensions.js @@ -17,7 +17,11 @@ export function init() { 'createIssue', 'requestReviewForPullRequest' ].includes(actionLabel), - getLabel: () => '' + getLabel: () => '', + getLink: (realization) => { + realization.link = realization.objectId; + return realization.link; + }, }, }); } \ No newline at end of file