Skip to content

Commit 9fcc845

Browse files
authored
Merge pull request #2869 from rashmi73/issue_2850
issue #2850 fix
2 parents 7b3e5c0 + da74505 commit 9fcc845

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/components/LinksMenu/EditFileAttachment.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class EditFileAttachment extends React.Component {
4242
render() {
4343
const { onCancel, onConfirm, projectMembers, loggedInUser } = this.props
4444
const { title, allowedUsers } = this.state
45+
const showVisibleToAllProjectMembersText = !(allowedUsers.length > 0)
4546
return (
4647
<div className="modal delete-link-modal">
4748
<div className="modal-title danger">
@@ -57,6 +58,9 @@ export class EditFileAttachment extends React.Component {
5758
loggedInUser={loggedInUser}
5859
selectedUsers={this.userIdsToHandles(allowedUsers).join(',')}
5960
/>
61+
{showVisibleToAllProjectMembersText && <div className="project-members-visible">
62+
There are no specified file viewers. File will be visible to all project members.
63+
</div>}
6064
<br />
6165

6266
<div className="button-area flex center">

src/components/LinksMenu/LinksMenu.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@
119119
width: 100%;
120120
}
121121

122+
.project-members-visible {
123+
margin: 10px 0;
124+
line-height: 120%;
125+
font-size: 12px;
126+
}
127+
122128
li:before {
123129
content: '\b7\a0';
124130
font-size: 200%;

0 commit comments

Comments
 (0)