Skip to content

Commit

Permalink
Update the button text
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
obulat committed Mar 17, 2024
1 parent 769640e commit 02c57f7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/VMediaInfo/VMediaTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
>{{
$t(
buttonStatus === "show"
? "mediaDetails.tags.showAll"
: "mediaDetails.tags.seeLess"
? "mediaDetails.tags.showMore"
: "mediaDetails.tags.showLess"
)
}}<VIcon
name="caret-down"
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/locales/scripts/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,8 @@
audioInfo: "Audio information",
tags: {
title: "Tags",
showAll: "Show all tags",
showFewer: "Show fewer tags",
showMore: "Show more",
showLess: "Show less",
},
contentReport: {
short: "Report",
Expand Down
4 changes: 2 additions & 2 deletions frontend/test/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@
"audioInfo": "معلومات صوتية",
"tags": {
"title": "العلامات",
"showAll": "العلامات",
"seeLess": "انظر أقل"
"showMore": "أظهر المزيد",
"showLess": "تظهر أقل"
},
"contentReport": {
"short": "تقرير",
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/playwright/e2e/collections.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ test.describe("collections", () => {
const COLLAPSE_BUTTON = (page: Page) =>
page.getByRole("button", { name: t("mediaDetails.tags.showLess") })
const EXPAND_BUTTON = (page: Page) =>
page.getByRole("button", { name: t("mediaDetails.tags.showAll") })
page.getByRole("button", { name: t("mediaDetails.tags.showMore") })

test("some tags are hidden if there are more than 3 rows", async ({ page }) => {
await preparePageForTests(page, "xl", {
Expand Down

0 comments on commit 02c57f7

Please sign in to comment.