summaryrefslogtreecommitdiffstats
path: root/client/components/settings/peopleBody.js
blob: 058cb8d58b95c5eafe6260dc32ee0e7a7bb7cefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Meteor.subscribe('people');

BlazeComponent.extendComponent({
  onCreated() {
    this.error = new ReactiveVar('');
    this.loading = new ReactiveVar(false);
    this.people = new ReactiveVar(true);
  },

  setError(error) {
    this.error.set(error);
  },

  setLoading(w) {
    this.loading.set(w);
  },

  peopleList() {
    this.users = Users.find({});

    this.users.forEach((user) => {
      console.log(JSON.stringify(user));
    });
    return this.users;
  },
}).register('people');