debian-mirror-gitlab/app/assets/javascripts/invite_members/utils/member_utils.js
2023-06-20 00:43:36 +05:30

14 lines
429 B
JavaScript

import { getParameterValues } from '~/lib/utils/url_utility';
export function memberName(member) {
// user defined tokens(invites by email) will have email in `name` and will not contain `username`
return member.username || member.name;
}
export function triggerExternalAlert() {
return false;
}
export function qualifiesForTasksToBeDone() {
return getParameterValues('open_modal')[0] === 'invite_members_for_task';
}