diff --git a/app/static/js/ResourceLists/CorpusFileList.js b/app/static/js/ResourceLists/CorpusFileList.js index 07a2eaca..5957a140 100644 --- a/app/static/js/ResourceLists/CorpusFileList.js +++ b/app/static/js/ResourceLists/CorpusFileList.js @@ -158,7 +158,7 @@ class CorpusFileList extends ResourceList { window.location.reload(); }); } else { - Requests.corpora.entity.followers.entity.delete(this.corpusId, itemId); + Requests.corpora.entity.files.ent.delete(this.corpusId, itemId) } }); modal.open(); diff --git a/app/static/js/ResourceLists/CorpusList.js b/app/static/js/ResourceLists/CorpusList.js index a95533fe..7988cb85 100644 --- a/app/static/js/ResourceLists/CorpusList.js +++ b/app/static/js/ResourceLists/CorpusList.js @@ -26,9 +26,9 @@ class CorpusList extends ResourceList { get item() { return (values) => { return ` -
Do you really want to delete the Corpus ${values.title}? All files will be permanently deleted!
+Do you really want to ${values['is-owner'] ? 'delete' : 'unfollow'} the Corpus ${values.title}? ${values['is-owner'] ? 'All files will be permanently deleted!' : ''}
Do you really want to delete this Corpora?
-All corpora will be permanently deleted!
+Do you really want to delete this Corpora? All corpora will be permanently deleted!
+Do you really want to unfollow this Corpora?
++ | Title and Description | +Owner | +Status | ++ | + |
---|