1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-14 22:22:39 +01:00

show add button for watchlist items if rating is disabled (#103)

This commit is contained in:
Viktor Geringer 2017-12-29 16:54:06 +01:00 committed by GitHub
parent 345c5ef579
commit 9a66341456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,12 @@
<template>
<div>
<span v-if="item.rating != null" :class="'item-rating rating-' + item.rating" @click="changeRating()">
<span v-if="item.rating != null && ! item.watchlist" :class="'item-rating rating-' + item.rating" @click="changeRating()">
<i class="icon-rating"></i>
</span>
<span v-if="item.rating == null && item.tmdb_id && ! localRated && auth" class="item-rating item-new" @click="addNewItem()">
<span v-if="(item.rating == null || item.watchlist) && item.tmdb_id && auth && ! localRated" class="item-rating item-new" @click="addNewItem()">
<i class="icon-add"></i>
</span>
<span v-if="(item.rating == null || item.watchlist) && item.tmdb_id && localRated" class="item-rating item-new">
<span v-if="item.rating == null && item.tmdb_id && localRated" class="item-rating item-new">
<span class="loader smallsize-loader"><i></i></span>
</span>
</div>