parent
a4b30c056d
commit
f36fc91963
@ -8,6 +8,7 @@ import { when } from "lit/directives/when.js";
|
|||||||
|
|
||||||
import { SearchParamsController } from "@/controllers/searchParams";
|
import { SearchParamsController } from "@/controllers/searchParams";
|
||||||
import { srOnly } from "@/utils/css";
|
import { srOnly } from "@/utils/css";
|
||||||
|
import localize from "@/utils/localize";
|
||||||
import chevronLeft from "~assets/icons/chevron-left.svg";
|
import chevronLeft from "~assets/icons/chevron-left.svg";
|
||||||
import chevronRight from "~assets/icons/chevron-right.svg";
|
import chevronRight from "~assets/icons/chevron-right.svg";
|
||||||
|
|
||||||
@ -375,7 +376,7 @@ export class Pagination extends LitElement {
|
|||||||
.align=${"center"}
|
.align=${"center"}
|
||||||
@click=${() => this.onPageChange(page)}
|
@click=${() => this.onPageChange(page)}
|
||||||
aria-disabled=${isCurrent}
|
aria-disabled=${isCurrent}
|
||||||
>${page}</btrix-navigation-button
|
>${localize.number(page)}</btrix-navigation-button
|
||||||
>
|
>
|
||||||
</li>`;
|
</li>`;
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,7 @@ import { type PageChangeEvent } from "@/components/ui/pagination";
|
|||||||
import { renderSpinner } from "@/pages/org/archived-item-qa/ui/spinner";
|
import { renderSpinner } from "@/pages/org/archived-item-qa/ui/spinner";
|
||||||
import type { APIPaginatedList, APISortQuery } from "@/types/api";
|
import type { APIPaginatedList, APISortQuery } from "@/types/api";
|
||||||
import type { ArchivedItemQAPage } from "@/types/qa";
|
import type { ArchivedItemQAPage } from "@/types/qa";
|
||||||
|
import { pluralOf } from "@/utils/pluralize";
|
||||||
|
|
||||||
export type SortDirection = "asc" | "desc";
|
export type SortDirection = "asc" | "desc";
|
||||||
export type SortableFieldNames =
|
export type SortableFieldNames =
|
||||||
@ -139,10 +140,10 @@ export class PageList extends BtrixElement {
|
|||||||
>
|
>
|
||||||
${total === this.totalPages
|
${total === this.totalPages
|
||||||
? msg(
|
? msg(
|
||||||
str`Showing all ${this.localize.number(this.totalPages)} pages`,
|
str`Showing all ${this.localize.number(this.totalPages)} ${pluralOf("pages", this.totalPages)}`,
|
||||||
)
|
)
|
||||||
: msg(
|
: msg(
|
||||||
str`Showing ${this.localize.number(total)} of ${this.localize.number(this.totalPages)} pages`,
|
str`Showing ${this.localize.number(total)} of ${this.localize.number(this.totalPages)} ${pluralOf("pages", this.totalPages)}`,
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user