Fixed publications of spell library

This commit is contained in:
Stefan Zermatten
2017-05-05 11:11:43 +02:00
parent 9afe38d043
commit 18aa1b2040
3 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
.spell-library-dialog .spell.selected {
background-color: #e4e4e4;
}
.spell-library-dialog .category-header {
font-size: 16px;
}
.spell-library-dialog .category-header iron-icon {
transition: transform 0.3s ease;
}
.spell-library-dialog .category-header iron-icon.open {
transform: rotate(90deg);
}
.spell-library-dialog table {
border-collapse: collapse;
}
.spell-library-dialog .library-spell td {
position: relative;
}

View File

@@ -53,7 +53,7 @@ Template.spellLibraryDialog.helpers({
spellsInCategory(categoryKey){
return LibrarySpells.find({
library: "SRDLibraryGA3XWsd",
"settings.category": categoryKey,
level: categoryKey,
}, {
sort: {name: 1},
});

View File

@@ -16,7 +16,7 @@ Meteor.publish("standardLibraryItems", function(categoryKey){
});
Meteor.publish("standardLibrarySpells", function(level){
return LibraryItems.find({
return LibrarySpells.find({
library: {$in: standardLibraryIds},
level,
}, {