aboutsummaryrefslogtreecommitdiff
path: root/src/components/mao-admin.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mao-admin.js')
-rw-r--r--src/components/mao-admin.js15
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);
}