mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-14 18:10:40 +00:00
bug fixes
This commit is contained in:
@ -31,7 +31,7 @@ class SpaCyNLPPipelineModelList extends RessourceList {
|
||||
<td><b><span class="title"></span> <span class="version"></span></b><br><i><span class="description"></span></i></td>
|
||||
<td><a class="publisher-url"><span class="publisher"></span></a> (<span class="publishing-year"></span>)<br><a class="publishing-url"><span class="publishing-url-2"></span></a></td>
|
||||
<td>
|
||||
<div class="switch action-switch center-align" data-action="share-request">
|
||||
<div class="switch action-switch center-align" data-action="share-request" data-user-role=>
|
||||
<span class="share"></span>
|
||||
<label>
|
||||
<input type="checkbox" class="shared">
|
||||
@ -86,6 +86,11 @@ class SpaCyNLPPipelineModelList extends RessourceList {
|
||||
|
||||
init (user) {
|
||||
this._init(user.spacy_nlp_pipeline_models);
|
||||
for (let switchElement of this.listjs.list.querySelectorAll('.shared')) {
|
||||
if (user.role.name !== 'Administrator' || user.role.name !== 'Contributor') {
|
||||
switchElement.setAttribute('disabled', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_init(ressources) {
|
||||
|
Reference in New Issue
Block a user