Update toolbar icons on group editability change

And trigger 'group' 'modify' notifier event for inherited Zotero.Library
properties
This commit is contained in:
Dan Stillman 2016-03-25 16:48:33 -04:00
parent a61c99843b
commit 234127e65a
4 changed files with 82 additions and 36 deletions

View file

@ -14,4 +14,19 @@ describe("Zotero.Groups", function () {
}
})
})
describe("#save()", function () {
it("should trigger notifier event for inherited properties", function* () {
var group = yield createGroup({
editable: false
});
group.editable = true;
var promise = waitForNotifierEvent('modify', 'group');
yield group.saveTx();
var data = yield promise;
assert.lengthOf(data.ids, 1);
assert.sameMembers(data.ids, [group.id]);
});
});
})