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/request-element.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/request-element.js')
-rw-r--r-- | src/components/request-element.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/request-element.js b/src/components/request-element.js index c2bfa34..935bf32 100644 --- a/src/components/request-element.js +++ b/src/components/request-element.js @@ -52,6 +52,7 @@ class RequestElement extends connect(store)(LitElement) { <p><em>Location:</em> ${'\t' + this.location }</p> <p><em>Minutes: </em> ${'\t' + (this.time*60) }</p> <p><em>Trainee: </em> ${'\t' + this.trainee }</p> + <p><em>Subject: </em> ${'\t' + this.subject }</p> </div> </div> <div hidden="${!props.infoTabOpen}" class="card-actions"> @@ -67,6 +68,11 @@ class RequestElement extends connect(store)(LitElement) { on-tap= "${() => this.rejectHours()}"> Reject Time </paper-button> + <iron-image + style:"width:100%; height:auto;" + preload + src="${props.imgPath}"> + </iron-image> </div> </paper-card> `; @@ -78,8 +84,10 @@ class RequestElement extends connect(store)(LitElement) { location: String, time: Number, trainee: String, + subject: String, uid: String, id: String, + imgPath: String, infoTabOpen: Boolean }}; @@ -92,8 +100,10 @@ class RequestElement extends connect(store)(LitElement) { this.location = "Unknown location"; this.time = -1; this.trainee = "Unknown trainee"; + this.subject = "Unknown subject"; this.uid = "Unknown uid"; this.docId = "Unknown docId"; + this.imgPath = ""; this.infoTabOpen = false; } |