diff --git a/app/assets/javascripts/work_items/components/work_item_links/index.js b/app/assets/javascripts/work_items/components/work_item_links/index.js index 07aa98a1b44fe462629b17d8f7c8d3b7390a6ba0..616dce4d2c078b4b4d4db4fbc84817a185e2446a 100644 --- a/app/assets/javascripts/work_items/components/work_item_links/index.js +++ b/app/assets/javascripts/work_items/components/work_item_links/index.js @@ -1,5 +1,6 @@ import Vue from 'vue'; import { GlToast } from '@gitlab/ui'; +import { parseBoolean } from '~/lib/utils/common_utils'; import { apolloProvider } from '~/graphql_shared/issuable_client'; import WorkItemLinks from './work_item_links.vue'; @@ -20,6 +21,7 @@ export default function initWorkItemLinks() { registerPath, signInPath, wiReportAbusePath, + isGroup, } = workItemLinksRoot.dataset; return new Vue({ @@ -34,6 +36,7 @@ export default function initWorkItemLinks() { registerPath, signInPath, reportAbusePath: wiReportAbusePath, + isGroup: parseBoolean(isGroup), }, render: (createElement) => createElement(WorkItemLinks, { diff --git a/app/views/projects/issues/_work_item_links.html.haml b/app/views/projects/issues/_work_item_links.html.haml index bf23fdc761b006bea66bc0a2f37507fc611801c7..b262f32d02c2db46ca7654a715dc19f305f0d0c0 100644 --- a/app/views/projects/issues/_work_item_links.html.haml +++ b/app/views/projects/issues/_work_item_links.html.haml @@ -3,4 +3,5 @@ full_path: @project.full_path, wi: work_items_index_data(@project), register_path: new_user_registration_path(redirect_to_referer: 'yes'), - sign_in_path: new_session_path(:user, redirect_to_referer: 'yes') } } + sign_in_path: new_session_path(:user, redirect_to_referer: 'yes'), + is_group: 'false' } }