Improved item library dialog UI
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
const standardLibraryIds = [
|
||||
"SRDLibraryGA3XWsd",
|
||||
];
|
||||
|
||||
Meteor.publish("standardLibraries", function(){
|
||||
const standardLibraryIds = [
|
||||
"SRDLibraryGA3XWsd",
|
||||
];
|
||||
return [
|
||||
LibraryItems.find({library: {$in: standardLibraryIds}}),
|
||||
Libraries.find({_id: {$in: standardLibraryIds}}),
|
||||
];
|
||||
return Libraries.find({_id: {$in: standardLibraryIds}});
|
||||
});
|
||||
|
||||
Meteor.publish("standardLibraryItems", function(categoryKey){
|
||||
return LibraryItems.find({
|
||||
library: {$in: standardLibraryIds},
|
||||
"settings.category": categoryKey,
|
||||
}, {
|
||||
sort: {name: 1},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user