Bug fixes

This commit is contained in:
Inga Kirschnick
2022-11-21 15:41:07 +01:00
parent 3f5750a000
commit 0128c6310b
3 changed files with 47 additions and 170 deletions

View File

@ -84,7 +84,7 @@ class SpaCyNLPPipelineModelList extends RessourceList {
this.listjs.list.addEventListener('change', (event) => {this.onChange(event)});
}
init (user) {
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') {