diff --git a/src/components/my-widgets-collaborate-dialog.jsx b/src/components/my-widgets-collaborate-dialog.jsx
index a5fef91b2..558d218d6 100644
--- a/src/components/my-widgets-collaborate-dialog.jsx
+++ b/src/components/my-widgets-collaborate-dialog.jsx
@@ -257,7 +257,8 @@ const MyWidgetsCollaborateDialog = ({onClose, inst, myPerms, otherUserPerms, set
onChange={(e) => setState({...state, searchText: e.target.value})}
className='user-add'
type='text'
- placeholder="Enter a Materia user's name or e-mail"/>
+ placeholder="Enter a user's name or e-mail"/>
+ Only individuals who have previously used Materia will show up in search.
{ searchResultsRender }
)
@@ -273,33 +274,41 @@ const MyWidgetsCollaborateDialog = ({onClose, inst, myPerms, otherUserPerms, set
mainContentRender =
if (containsUser) {
- const mainContentElements = Array.from(state.updatedAllUserPerms).map(([userId, userPerms]) => {
+
+ const mainContentElements = []
+ let userContentElement = null
+
+ Array.from(state.updatedAllUserPerms).forEach(([userId, userPerms]) => {
if (userPerms.remove === true) return
let user = collabUsers[userId]
- if (!user)
- {
- return
- }
-
- user.is_owner = user.id === inst.user_id;
-
- return updatePerms(userId, perms)}
- readOnly={myPerms?.can?.share === false}
- />
+ if (!user) return
+
+ user.is_owner = user.id === inst.user_id
+ const rowElement = (
+ updatePerms(userId, perms)}
+ readOnly={myPerms?.can?.share === false}
+ />
+ )
+
+ if (currentUser.id === user.id) userContentElement = rowElement
+ else mainContentElements.push(rowElement)
})
mainContentRender = (
<>
- { mainContentElements }
+ You
+ { userContentElement }
+ Users With Access
+ { mainContentElements.length > 0 ? mainContentElements : No other users have access to your widget. }
>
)
}
@@ -342,12 +351,14 @@ const MyWidgetsCollaborateDialog = ({onClose, inst, myPerms, otherUserPerms, set
{/* Calendar portal used to bring calendar popup out of access-list to avoid cutting off the overflow */}
- Users with full access can edit or copy this widget and can
+ Users with full access can edit this widget and can
add or remove people in this list.
{onlyOneFullPermHolder && myPerms.accessLevel == access.FULL && (
-
- {'\u00A0'}Note: There must be at least one user with full access.
-
+
+
+ { '\u00A0'}Note: There must be at least one user with full access.
+
+
)}
+ )
+ }
+
let provisionalAccess = null
if ((state.contexts != null || state.provisionalAccessRemoved == true) && !readOnly ) {
provisionalAccess = (
@@ -152,8 +203,8 @@ const CollaborateUserRow = ({user, perms, myPerms, isCurrentUser, onlyOneFullPer
{ state.provisionalAccessRemoved == false ? (
<>
- This user has provisional access due to the widget being embedded in their course. They can only see scores associated
- with that course. Selecting Unrestrict Access will allow them to view all scores the widget has collected.
+ Provisional Access: This user can view scores from a course the widget was embedded in. They can only see scores associated
+ with that course. Unrestricted Access will allow them to view all scores the widget has collected.