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 committed by Dan Stillman
parent 221aa25e00
commit bd18339797

View file

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