Resolved linting issues
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
:key="_route.route"
|
||||
:route="_route"
|
||||
:active="activeRoute"
|
||||
:useStroke="_route?.useStroke"
|
||||
:use-stroke="_route?.useStroke"
|
||||
/>
|
||||
<slot></slot>
|
||||
</ul>
|
||||
|
||||
@@ -245,6 +245,18 @@
|
||||
requested.value = status;
|
||||
}
|
||||
|
||||
function setBackdrop(): void {
|
||||
if (
|
||||
!media.value?.backdrop ||
|
||||
!backdropElement.value?.style ||
|
||||
backdropElement.value?.style?.backgroundImage !== ""
|
||||
)
|
||||
return;
|
||||
|
||||
const backdropURL = `${ASSET_URL}${ASSET_SIZES[1]}${media.value.backdrop}`;
|
||||
backdropElement.value.style.backgroundImage = `url(${backdropURL})`;
|
||||
}
|
||||
|
||||
function getCredits(
|
||||
type: MediaTypes.Movie | MediaTypes.Show
|
||||
): Promise<IMediaCredits> {
|
||||
@@ -293,18 +305,6 @@
|
||||
.then(setBackdrop);
|
||||
}
|
||||
|
||||
function setBackdrop(): void {
|
||||
if (
|
||||
!media.value?.backdrop ||
|
||||
!backdropElement.value?.style ||
|
||||
backdropElement.value?.style?.backgroundImage !== ""
|
||||
)
|
||||
return;
|
||||
|
||||
const backdropURL = `${ASSET_URL}${ASSET_SIZES[1]}${media.value.backdrop}`;
|
||||
backdropElement.value.style.backgroundImage = `url(${backdropURL})`;
|
||||
}
|
||||
|
||||
function sendRequest() {
|
||||
request(props.id, props.type).then(resp =>
|
||||
setRequested(resp?.success || false)
|
||||
|
||||
Reference in New Issue
Block a user