From 18aa1b2040d6fefdbf0f34088bbc29870603daa1 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 5 May 2017 11:11:43 +0200 Subject: [PATCH] Fixed publications of spell library --- .../spellLibraryDialog.css | 23 +++++++++++++++++++ .../spellsLibraryDialog/spellLibraryDialog.js | 2 +- rpg-docs/server/publications/library.js | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.css b/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.css index e69de29b..915c5846 100644 --- a/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.css +++ b/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.css @@ -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; +} diff --git a/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.js b/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.js index 7e37d184..6b8ce8e3 100644 --- a/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.js +++ b/rpg-docs/client/views/character/spells/spellsLibraryDialog/spellLibraryDialog.js @@ -53,7 +53,7 @@ Template.spellLibraryDialog.helpers({ spellsInCategory(categoryKey){ return LibrarySpells.find({ library: "SRDLibraryGA3XWsd", - "settings.category": categoryKey, + level: categoryKey, }, { sort: {name: 1}, }); diff --git a/rpg-docs/server/publications/library.js b/rpg-docs/server/publications/library.js index e5d0c276..1e6a6441 100644 --- a/rpg-docs/server/publications/library.js +++ b/rpg-docs/server/publications/library.js @@ -16,7 +16,7 @@ Meteor.publish("standardLibraryItems", function(categoryKey){ }); Meteor.publish("standardLibrarySpells", function(level){ - return LibraryItems.find({ + return LibrarySpells.find({ library: {$in: standardLibraryIds}, level, }, {