Prevent deleting My Publications

Previously showed a blank confirmation dialog and logged an error.
This commit is contained in:
Abe Jellinek 2022-07-13 16:23:50 -04:00
parent 4c063e7b6e
commit 95239db0fd

View file

@ -1946,8 +1946,9 @@ var ZoteroPane = new function()
this.deleteSelectedCollection = function (deleteItems) {
var collectionTreeRow = this.getCollectionTreeRow();
// Don't allow deleting libraries
if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed()) {
// Don't allow deleting libraries or My Publications
if (collectionTreeRow.isLibrary(true) && !collectionTreeRow.isFeed()
|| collectionTreeRow.isPublications()) {
return;
}