Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
95e43cab
Commit
95e43cab
authored
Aug 24, 2021
by
Eric Rosenbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"Studio Host" label on curator tab tile, behind feature flag
parent
6834d675
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/views/studio/studio-member-tile.jsx
src/views/studio/studio-member-tile.jsx
+11
-4
No files found.
src/views/studio/studio-member-tile.jsx
View file @
95e43cab
...
@@ -29,7 +29,7 @@ import removeIcon from './icons/remove-icon.svg';
...
@@ -29,7 +29,7 @@ import removeIcon from './icons/remove-icon.svg';
import
promoteIcon
from
'
./icons/curator-icon.svg
'
;
import
promoteIcon
from
'
./icons/curator-icon.svg
'
;
const
StudioMemberTile
=
({
const
StudioMemberTile
=
({
canRemove
,
canPromote
,
onRemove
,
canTransferHost
,
onPromote
,
canRemove
,
canPromote
,
onRemove
,
canTransferHost
,
onPromote
,
studioTransferLaunched
,
isCreator
,
hasReachedManagerLimit
,
// mapState props
isCreator
,
hasReachedManagerLimit
,
// mapState props
username
,
image
// own props
username
,
image
// own props
})
=>
{
})
=>
{
...
@@ -52,7 +52,12 @@ const StudioMemberTile = ({
...
@@ -52,7 +52,12 @@ const StudioMemberTile = ({
href=
{
userUrl
}
href=
{
userUrl
}
className=
"studio-member-name"
className=
"studio-member-name"
>
{
username
}
</
a
>
>
{
username
}
</
a
>
{
isCreator
&&
<
div
className=
"studio-member-role"
><
FormattedMessage
id=
"studio.creatorRole"
/></
div
>
}
{
isCreator
&&
<
div
className=
"studio-member-role"
>
{
studioTransferLaunched
?
<
FormattedMessage
id=
"studio.hostRole"
/>
:
<
FormattedMessage
id=
"studio.creatorRole"
/>
}
</
div
>
}
</
div
>
</
div
>
{
(
canRemove
||
canPromote
||
canTransferHost
)
&&
{
(
canRemove
||
canPromote
||
canTransferHost
)
&&
<
OverflowMenu
>
<
OverflowMenu
>
...
@@ -149,7 +154,8 @@ StudioMemberTile.propTypes = {
...
@@ -149,7 +154,8 @@ StudioMemberTile.propTypes = {
username
:
PropTypes
.
string
,
username
:
PropTypes
.
string
,
image
:
PropTypes
.
string
,
image
:
PropTypes
.
string
,
isCreator
:
PropTypes
.
bool
,
isCreator
:
PropTypes
.
bool
,
hasReachedManagerLimit
:
PropTypes
.
bool
hasReachedManagerLimit
:
PropTypes
.
bool
,
studioTransferLaunched
:
PropTypes
.
bool
};
};
const
ManagerTile
=
connect
(
const
ManagerTile
=
connect
(
...
@@ -158,7 +164,8 @@ const ManagerTile = connect(
...
@@ -158,7 +164,8 @@ const ManagerTile = connect(
canPromote
:
false
,
canPromote
:
false
,
canTransferHost
:
selectCanTransfer
(
state
,
ownProps
.
id
)
&&
canTransferHost
:
selectCanTransfer
(
state
,
ownProps
.
id
)
&&
selectStudioTransferLaunched
(
state
),
selectStudioTransferLaunched
(
state
),
isCreator
:
state
.
studio
.
owner
===
ownProps
.
id
isCreator
:
state
.
studio
.
owner
===
ownProps
.
id
,
studioTransferLaunched
:
selectStudioTransferLaunched
(
state
)
}),
}),
{
{
onRemove
:
removeManager
onRemove
:
removeManager
...
...
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