mirror of
https://github.com/rommapp/romm.git
synced 2026-12-04 12:52:19 +01:00
fix(ui): remove cover-art attribution link on details pages
The "Cover art provided by X" line linked to rom.url_cover, which for ScreenScraper contains a media download URL with embedded credentials. Render the source name as plain text so credentials are not exposed in the UI, while the URL stays stored in the database unchanged. Fixes #3612 Generated-By: PostHog Code Task-Id: 038e1de3-16ac-4f2b-8ae0-b4dade2f8ef9
This commit is contained in:
@@ -364,16 +364,8 @@ function getFilterValues(path: string): string[] {
|
||||
</span> </template
|
||||
>.
|
||||
</div>
|
||||
<div v-if="rom.url_cover && coverImageSource" class="mt-1">
|
||||
Cover art provided by
|
||||
<a
|
||||
:href="rom.url_cover"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style="color: inherit"
|
||||
>
|
||||
{{ coverImageSource }}</a
|
||||
>.
|
||||
<div v-if="coverImageSource" class="mt-1">
|
||||
Cover art provided by {{ coverImageSource }}.
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -338,19 +338,9 @@ const coverSource = computed(() => {
|
||||
>
|
||||
</template>
|
||||
</i18n-t>
|
||||
<i18n-t
|
||||
v-if="coverSource && rom.url_cover"
|
||||
keypath="rom.cover-art-provided-by"
|
||||
tag="div"
|
||||
>
|
||||
<i18n-t v-if="coverSource" keypath="rom.cover-art-provided-by" tag="div">
|
||||
<template #source>
|
||||
<a
|
||||
class="overview-tab__attribution-link"
|
||||
:href="rom.url_cover"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>{{ coverSource }}</a
|
||||
>
|
||||
<span>{{ coverSource }}</span>
|
||||
</template>
|
||||
</i18n-t>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user