mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 11:57:34 +00:00
[Activities] 'Modified by': don't display the colon when no user is selected (#5808)
This commit is contained in:
@@ -73,10 +73,12 @@ class UserSelector extends Component {
|
||||
return (
|
||||
<div className="mt-4 position-relative">
|
||||
<span className="cur-activity-modifiers d-inline-block p-2 rounded" onClick={this.onToggleClick}>
|
||||
{gettext('Modified by:')}
|
||||
{currentSelectedUsers.length > 0 && (
|
||||
<span className="d-inline-block ml-1">{currentSelectedUsers.map(item => item.name).join(', ')}</span>
|
||||
)}
|
||||
{currentSelectedUsers.length > 0 ? (
|
||||
<>
|
||||
<span>{gettext('Modified by:')}</span>
|
||||
<span className="d-inline-block ml-1">{currentSelectedUsers.map(item => item.name).join(', ')}</span>
|
||||
</>
|
||||
) : gettext('Modified by')}
|
||||
<i className="fas fa-caret-down ml-2 toggle-icon"></i>
|
||||
</span>
|
||||
{isPopoverOpen && (
|
||||
|
Reference in New Issue
Block a user