Added some fresh new todos

This commit is contained in:
2019-10-22 23:19:24 +02:00
parent 6d6f1ffd06
commit 1a014bea15
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,8 @@
<navigation></navigation>
<!-- Header with search field -->
<!-- TODO move this to the navigation component -->
<header class="header">
<search-input v-model="query"></search-input>
</header>
@@ -16,7 +18,7 @@
<darkmode-toggle />
<!-- Display the component assigned to the given route (default: home) -->
<router-view class="content"></router-view>
<router-view class="content" :key="$route.fullPath"></router-view>
</div>
</template>

View File

@@ -2,6 +2,7 @@
<li class="movies-item" :class="{'shortList': shortList}">
<a class="movies-item__link" :class="{'no-image': noImage}" @click.prevent="openMoviePopup(movie.id, movie.type)">
<!-- TODO change to picture element -->
<figure class="movies-item__poster">
<img v-if="!noImage" class="movies-item__img" src="~assets/placeholder.png" v-img="poster()" alt="">
<img v-if="noImage" class="movies-item__img is-loaded" src="~assets/no-image.png" alt="">