Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d5793ebe
Commit
d5793ebe
authored
Jul 23, 2021
by
Sheldon Led
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use membership_type condition as method
parent
99f88012
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
ee/app/assets/javascripts/billings/seat_usage/components/subscription_seats.vue
...pts/billings/seat_usage/components/subscription_seats.vue
+8
-10
No files found.
ee/app/assets/javascripts/billings/seat_usage/components/subscription_seats.vue
View file @
d5793ebe
...
...
@@ -130,6 +130,12 @@ export default {
this
.
$refs
.
cannotRemoveModal
.
show
();
}
},
isGroupInvite
(
item
)
{
return
item
.
user
.
membership_type
===
'
group_invite
'
;
},
isProjectInvite
(
item
)
{
return
item
.
user
.
membership_type
===
'
project_invite
'
;
},
},
i18n
:
{
emailNotVisibleTooltipText
:
s__
(
...
...
@@ -200,18 +206,10 @@ export default {
:sub-label=
"item.user.username"
>
<template
#meta
>
<gl-badge
v-if=
"item.user.membership_type === 'group_invite'"
size=
"sm"
variant=
"muted"
>
<gl-badge
v-if=
"isGroupInvite(item)"
size=
"sm"
variant=
"muted"
>
{{
s__
(
'
Billing|Group invite
'
)
}}
</gl-badge>
<gl-badge
v-if=
"item.user.membership_type === 'project_invite'"
size=
"sm"
variant=
"muted"
>
<gl-badge
v-if=
"isProjectInvite(item)"
size=
"sm"
variant=
"muted"
>
{{
s__
(
'
Billing|Project invite
'
)
}}
</gl-badge>
</
template
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment