disable role select for self

This commit is contained in:
Patrick Jentsch 2023-06-05 13:01:14 +02:00
parent e326e1ab81
commit 86318b9a7d

View File

@ -43,7 +43,7 @@ class CorpusFollowerList extends ResourceList {
</td>
<td>
<div class="input-field disable-on-click list-action-trigger" data-list-action="update-role">
<select ${values['user_id'] === currentUserId ? 'disabled' : ''}>
<select ${values['follower-id'] === currentUserId ? 'disabled' : ''}>
<option value="Viewer" ${values['role-name'] === 'Viewer' ? 'selected' : ''}>Viewer</option>
<option value="Contributor" ${values['role-name'] === 'Contributor' ? 'selected' : ''}>Contributor</option>
<option value="Administrator" ${values['role-name'] === 'Administrator' ? 'selected' : ''}>Administrator</option>