From 3fb218ac164f9877833183b33719d0564cffa359 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Tue, 8 May 2018 21:24:28 +0200
Subject: reference assets

---
 src/ReportTile.vue | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/ReportTile.vue')

diff --git a/src/ReportTile.vue b/src/ReportTile.vue
index 3d5479d..642eed3 100644
--- a/src/ReportTile.vue
+++ b/src/ReportTile.vue
@@ -4,10 +4,11 @@
     <article class="media">
       <div class="media-left">
         <figure class="image is-64x64">
-          <img src="" :alt="entry.Actor">
+          <img :src="'dist/assets/hero-icons/' + hero.toLowerCase() + '.png'" :alt="entry.Actor">
         </figure>
         <figure class="image is-64x64">
-          <img src="" :alt="entry.Talent">
+          <img :src="'dist/assets/talent-icons-small/' + hero + '/' + hero + '_Rare.png'" :alt="entry.Talent">
+          <!-- TODO Rarity map -->
         </figure>
       </div>
       <div class="media-content">
@@ -29,6 +30,9 @@ export default Vue.component('report-tile', {
       };
     },
     computed: {
+      hero: function() {
+        return this.entry.Actor.substring(1, this.entry.Actor.length - 1);
+      },
     },
 });
 </script>
-- 
cgit v1.3.1

