Resolved linting issues

This commit is contained in:
2022-08-15 21:10:46 +02:00
parent 2a9fc87350
commit d545fccdc3
2 changed files with 13 additions and 13 deletions

View File

@@ -5,7 +5,7 @@
:key="_route.route"
:route="_route"
:active="activeRoute"
:useStroke="_route?.useStroke"
:use-stroke="_route?.useStroke"
/>
<slot></slot>
</ul>

View File

@@ -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)