Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update Audio and Image's action button text (#1690)

Krystle Salazar8b7a7b4f94fc
diff --git a/src/components/VAudioTrack/layouts/VFullLayout.vue b/src/components/VAudioTrack/layouts/VFullLayout.vue
index 812df991f..5c5c396ac 100644
--- a/src/components/VAudioTrack/layouts/VFullLayout.vue
+++ b/src/components/VAudioTrack/layouts/VFullLayout.vue
@@ -53,10 +53,10 @@
<VButton
as="VLink"
:href="audio.foreign_landing_url"
- :size="isSmall ? 'small' : 'medium'"
- class="order-1 text-sr font-semibold ms-auto lg:order-2 lg:text-2xl"
+ size="disabled"
+ class="order-1 px-6 py-3 text-sr font-semibold ms-auto md:px-6 md:py-4 md:text-2xl lg:order-2"
>
- {{ $t('download-button.download') }}
+ {{ $t('audio-details.weblink') }}
</VButton>
</div>
</div>
diff --git a/src/locales/en.json b/src/locales/en.json
index 8aa3f4f1a..9e9abce93 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -481,7 +481,7 @@
},
"image-details": {
"creator": "by {name}",
- "weblink": "Go to image's website",
+ "weblink": "Use this image",
"information": {
"title": "Image information",
"type": "Type",
@@ -508,7 +508,8 @@
"source": "Source",
"genre": "Genre"
},
- "information": "Audio information"
+ "information": "Audio information",
+ "weblink": "Use this audio"
},
"meta-search": {
"caption": "{openverse} does not currently index the sources listed above, but through this interface is offering convenient access to search services provided by other independent organizations. {openverse} has no control over the results that are returned. Do not assume that the results displayed in this search portal are under a CC license. Always verify that the work is actually under a CC license by following the link. If you are in doubt, you should contact the copyright holder directly, or try to contact the site where you found the content.",
diff --git a/test/unit/specs/components/AudioTrack/v-full-layout.spec.js b/test/unit/specs/components/AudioTrack/v-full-layout.spec.js
index e89aadca5..1d5ec0216 100644
--- a/test/unit/specs/components/AudioTrack/v-full-layout.spec.js
+++ b/test/unit/specs/components/AudioTrack/v-full-layout.spec.js
@@ -5,7 +5,7 @@ import { getAudioObj } from '~~/test/unit/fixtures/audio'
import VFullLayout from '~/components/VAudioTrack/layouts/VFullLayout.vue'
describe('VFullLayout', () => {
- it('should render the download button with the foreign landing url', () => {
+ it('should render the weblink button with the foreign landing url', () => {
const audio = getAudioObj()
render(VFullLayout, {
props: {
@@ -16,7 +16,7 @@ describe('VFullLayout', () => {
},
})
- const downloadButton = screen.getByText('download-button.download')
+ const downloadButton = screen.getByText('audio-details.weblink')
expect(downloadButton).toHaveAttribute('href', audio.foreign_landing_url)
})
})