Parties are now sorted in both character lists.
This commit is contained in:
@@ -7,7 +7,10 @@ Template.characterList.helpers({
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
parties() {
|
parties() {
|
||||||
return Parties.find({owner: Meteor.userId()});
|
return Parties.find(
|
||||||
|
{owner: Meteor.userId()},
|
||||||
|
{sort: {name: 1}},
|
||||||
|
);
|
||||||
},
|
},
|
||||||
charactersInParty(partyId) {
|
charactersInParty(partyId) {
|
||||||
var userId = Meteor.userId();
|
var userId = Meteor.userId();
|
||||||
|
|||||||
@@ -5,8 +5,10 @@ Template.characterSideList.onCreated(function() {
|
|||||||
|
|
||||||
Template.characterSideList.helpers({
|
Template.characterSideList.helpers({
|
||||||
parties() {
|
parties() {
|
||||||
var userId = Meteor.userId();
|
return Parties.find(
|
||||||
return Parties.find({owner: userId});
|
{owner: Meteor.userId()},
|
||||||
|
{sort: {name: 1}},
|
||||||
|
);
|
||||||
},
|
},
|
||||||
charactersInParty() {
|
charactersInParty() {
|
||||||
var userId = Meteor.userId();
|
var userId = Meteor.userId();
|
||||||
|
|||||||
Reference in New Issue
Block a user