debian-mirror-gitlab/app/assets/javascripts/vue_shared/components/members/utils.js

20 lines
359 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
import { __ } from '~/locale';
export const generateBadges = (member, isCurrentUser) => [
{
show: isCurrentUser,
text: __("It's you"),
variant: 'success',
},
{
show: member.user?.blocked,
text: __('Blocked'),
variant: 'danger',
},
{
show: member.user?.twoFactorEnabled,
text: __('2FA'),
variant: 'info',
},
];