Sleep Timer fix CorpusList

This commit is contained in:
Inga Kirschnick 2023-06-07 11:29:00 +02:00
parent 8aeafc33bd
commit 62d20409ea

View File

@ -246,17 +246,18 @@ class CorpusList extends ResourceList {
this.selectedItemIds.forEach(selectedItemId => {
let listItem = this.listjs.get('id', selectedItemId)[0].elm;
let values = this.listjs.get('id', listItem.dataset.id)[0].values();
if (!values['is-owner']) {
Requests.corpora.entity.followers.entity.delete(selectedItemId, currentUserId);
} else {
if (values['is-owner']) {
Requests.corpora.entity.delete(selectedItemId);
} else {
Requests.corpora.entity.followers.entity.delete(selectedItemId, currentUserId);
setTimeout(() => {
window.location.reload();
}, 1000);
}
});
this.selectedItemIds.clear();
this.renderingItemSelection();
setTimeout(() => {
window.location.reload();
}, 1000);
});
modal.open();
break;