Border radius & prevent display result count before vaule
This commit is contained in:
@@ -61,7 +61,9 @@
|
|||||||
>
|
>
|
||||||
<IconBinoculars />
|
<IconBinoculars />
|
||||||
Search for torrents
|
Search for torrents
|
||||||
<span class="meta">{{ numberOfTorrentResults }}</span>
|
<span v-if="numberOfTorrentResults" class="meta">{{
|
||||||
|
numberOfTorrentResults
|
||||||
|
}}</span>
|
||||||
</sidebar-list-element>
|
</sidebar-list-element>
|
||||||
|
|
||||||
<sidebar-list-element @click="openTmdb">
|
<sidebar-list-element @click="openTmdb">
|
||||||
@@ -255,23 +257,22 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchByType() {
|
async fetchByType() {
|
||||||
|
try {
|
||||||
|
let response;
|
||||||
if (this.type === "movie") {
|
if (this.type === "movie") {
|
||||||
getMovie(this.id, true, false)
|
response = await getMovie(this.id, true, false);
|
||||||
.then(this.parseResponse)
|
} else if (this.type === "show") {
|
||||||
.catch(error => {
|
response = await getShow(this.id, false, false);
|
||||||
this.$router.push({ name: "404" });
|
|
||||||
});
|
|
||||||
} else if (this.type == "show") {
|
|
||||||
getShow(this.id, false, false)
|
|
||||||
.then(this.parseResponse)
|
|
||||||
.catch(error => {
|
|
||||||
this.$router.push({ name: "404" });
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.$router.push({ name: "404" });
|
this.$router.push({ name: "404" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.parseResponse(response);
|
||||||
|
} catch (error) {
|
||||||
|
this.$router.push({ name: "404" });
|
||||||
|
}
|
||||||
|
|
||||||
// async get credits
|
// async get credits
|
||||||
getCredits(this.type, this.id).then(credits => (this.credits = credits));
|
getCredits(this.type, this.id).then(credits => (this.credits = credits));
|
||||||
},
|
},
|
||||||
@@ -334,7 +335,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
store.dispatch("torrentModule/setResultCount", 0);
|
store.dispatch("torrentModule/setResultCount", null);
|
||||||
this.prevDocumentTitle = store.getters["documentTitle/title"];
|
this.prevDocumentTitle = store.getters["documentTitle/title"];
|
||||||
this.fetchByType();
|
this.fetchByType();
|
||||||
},
|
},
|
||||||
@@ -405,6 +406,7 @@ header {
|
|||||||
|
|
||||||
> img {
|
> img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user