diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-03 16:07:48 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-03 16:07:48 -0400 |
commit | 9973b1d785c9d3c6c71ad149eb5ad5b65a6eb95d (patch) | |
tree | 2f4e40fed08f69119d2d6bd7f9718f7ab9361d32 /src/components/mao-admin.js | |
parent | 92cf7a78bcb68947321deeb51b32e203b7f6a6cd (diff) |
Updated admin so it correctly shows the divisons of students based on the value in their account/
Diffstat (limited to 'src/components/mao-admin.js')
-rw-r--r-- | src/components/mao-admin.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/mao-admin.js b/src/components/mao-admin.js index dc78616..12a9e16 100644 --- a/src/components/mao-admin.js +++ b/src/components/mao-admin.js @@ -102,6 +102,13 @@ class MaoAdmin extends connect(store)(PageViewElement) { `; } + constructor() { + super(); + + this.requestsHidden = true; + this.registryHidden = true; + } + static get properties() { return { // This is the data from the store. signedIn: Boolean, @@ -121,9 +128,6 @@ class MaoAdmin extends connect(store)(PageViewElement) { this.requests = state.firebase.requests; this.registry = state.firebase.compList; - this.requestsHidden = true; - this.registryHidden = true; - this.updateInformation(); } @@ -182,8 +186,9 @@ class MaoAdmin extends connect(store)(PageViewElement) { for(var i = 0; i<this.registry.length; i++) { var registryElement = document.createElement('registry-element'); - registryElement.name = this.registry[i].name; - registryElement.emails = this.registry[i].emails; + registryElement.name = this.registry[i].name; + registryElement.emails = this.registry[i].emails; + registryElement.divisons = this.registry[i].divisons; registryGrid.appendChild(registryElement); } |