Don't select new groups in collections pane
This commit is contained in:
parent
5c523d8694
commit
d868f007e9
2 changed files with 8 additions and 4 deletions
|
@ -431,12 +431,10 @@ Zotero.CollectionTreeView.prototype.notify = Zotero.Promise.coroutine(function*
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'group':
|
case 'group':
|
||||||
yield this.reload();
|
yield this.reload();
|
||||||
// Groups can only be created during sync
|
yield this.restoreSelection(currentTreeRow);
|
||||||
let libraryID = Zotero.Groups.getLibraryIDFromGroupID(id);
|
|
||||||
yield this.selectByID("L" + libraryID);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -235,6 +235,12 @@ describe("Zotero.CollectionTreeView", function() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it("shouldn't select a new group", function* () {
|
||||||
|
var group = yield createGroup();
|
||||||
|
// Library should still be selected
|
||||||
|
assert.equal(cv.getSelectedLibraryID(), Zotero.Libraries.userLibraryID);
|
||||||
|
})
|
||||||
|
|
||||||
it("should remove a group and all children", function* () {
|
it("should remove a group and all children", function* () {
|
||||||
// Make sure Group Libraries separator and header exist already,
|
// Make sure Group Libraries separator and header exist already,
|
||||||
// since otherwise they'll interfere with the count
|
// since otherwise they'll interfere with the count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue