diff options
author | Thuan Pham Quoc <thuanpq.io@gmail.com> | 2017-11-07 14:01:27 +0700 |
---|---|---|
committer | Thuan Pham Quoc <thuanpq.io@gmail.com> | 2017-11-07 14:01:27 +0700 |
commit | 29d54f46aa79a5f3fe067717fa418092e150eb47 (patch) | |
tree | d925f590fddaa50bbf87398a55f51088e44f04e9 /client/components/settings/peopleBody.js | |
parent | 2d12a4f40473bd152755e4ab1dadb943cb233c90 (diff) | |
download | wekan-29d54f46aa79a5f3fe067717fa418092e150eb47.tar.gz wekan-29d54f46aa79a5f3fe067717fa418092e150eb47.tar.bz2 wekan-29d54f46aa79a5f3fe067717fa418092e150eb47.zip |
Added people list in admin panel , just raw data right now, will add more features soon
Diffstat (limited to 'client/components/settings/peopleBody.js')
-rw-r--r-- | client/components/settings/peopleBody.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/client/components/settings/peopleBody.js b/client/components/settings/peopleBody.js new file mode 100644 index 00000000..058cb8d5 --- /dev/null +++ b/client/components/settings/peopleBody.js @@ -0,0 +1,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'); |