remove some code that doesnt work
This commit is contained in:
parent
f403b52af1
commit
f8e66968cd
1 changed files with 5 additions and 5 deletions
|
@ -67,7 +67,7 @@
|
|||
</div>
|
||||
<div class="explicit-icon" v-if="item.attributes && item.attributes.contentRating == 'explicit'"></div>
|
||||
<template v-if="showMetaData == true" @dblclick="route()">
|
||||
<div class="metainfo" style="min-width: 70px;" v-if="getHeartStatus(item)">
|
||||
<div class="metainfo" style="min-width: 70px;" v-if="getHeartStatus()">
|
||||
<div class="svg-icon" :style="{'--url': 'url(./assets/feather/heart-fill.svg)'}"></div>
|
||||
</div>
|
||||
<div class="metainfo">
|
||||
|
@ -502,14 +502,14 @@
|
|||
visibilityChanged: function (isVisible, entry) {
|
||||
this.isVisible = isVisible
|
||||
},
|
||||
async getHeartStatus(item) {
|
||||
async getHeartStatus() {
|
||||
try {
|
||||
let rating = await app.getRating(item)
|
||||
let rating = await app.getRating(this.item)
|
||||
if (rating == 1) {
|
||||
console.log(item.attributes.name + " checked for heart status! Response: true")
|
||||
console.log(this.item.attributes.name + " checked for heart status! Response: true")
|
||||
return true;
|
||||
} else {
|
||||
console.log(item.attributes.name + " checked for heart status! Response: false")
|
||||
console.log(this.item.attributes.name + " checked for heart status! Response: false")
|
||||
return false;
|
||||
}
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue