diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 16:22:44 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 16:22:44 -0400 |
commit | f14bf1edb18b02359fefb61f6d5f342892f7056c (patch) | |
tree | ffb354db6491f40620bf36f555fbb8f844958935 /src/components/mao-admin.js | |
parent | 6e8b40c5d78eb6d6cfb3c4d8f2d84b53e55523d0 (diff) |
Trying to find ways to get img in firebase storage to show in admin panel when viewing requests.
Diffstat (limited to 'src/components/mao-admin.js')
-rw-r--r-- | src/components/mao-admin.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/components/mao-admin.js b/src/components/mao-admin.js index 6c8a2c9..ffdcb19 100644 --- a/src/components/mao-admin.js +++ b/src/components/mao-admin.js @@ -101,11 +101,11 @@ class MaoAdmin extends connect(store)(PageViewElement) { static get properties() { return { // This is the data from the store. - signedIn: Boolean, - isAdmin: Boolean, - - requests: Array, - registry: Array, + signedIn: Boolean, + isAdmin: Boolean, + requests: Array, + registry: Array, + adminImgs: String, requestsHidden: Boolean, registryHidden: Boolean @@ -114,10 +114,11 @@ class MaoAdmin extends connect(store)(PageViewElement) { _stateChanged(state) { this.signedIn = state.firebaseAuth .signedIn; this.isAdmin = state.firebaseAdmin .isAdmin; - this.requests = state.firebaseAdmin .requests; this.registry = state.firebaseAdmin .compList; + this.adminImgs = state.firebaseAdmin.adminImgs; + this.updateInformation(); } @@ -164,8 +165,10 @@ class MaoAdmin extends connect(store)(PageViewElement) { requestElement.location = this.requests[i].location; requestElement.time = this.requests[i].time; requestElement.trainee = this.requests[i].trainee; + requestElement.subject = this.requests[i].subject; requestElement.uid = this.requests[i].uid; requestElement.docId = this.requests[i].docId; + requestElement.imgPath = this.requests[i].imgPath; requestGrid.appendChild(requestElement); } |