doc label and breadcrumb
This commit is contained in:
@@ -527,19 +527,13 @@ const Breadcrumbs = (props) => {
|
|||||||
<li className="govuk-breadcrumbs__list-item">
|
<li className="govuk-breadcrumbs__list-item">
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
router.locale != "en"
|
"/searchresults?q=" +
|
||||||
? router.locale +
|
props.props.search.searchString
|
||||||
"/searchresults?q=" +
|
|
||||||
props.props.search
|
|
||||||
.searchString
|
|
||||||
: "/searchresults?q=" +
|
|
||||||
props.props.search
|
|
||||||
.searchString
|
|
||||||
}
|
}
|
||||||
onClick={() => {
|
// onClick={() => {
|
||||||
// spinnerState();
|
// // spinnerState();
|
||||||
router.back();
|
// router.back();
|
||||||
}}
|
// }}
|
||||||
className="govuk-breadcrumbs__link"
|
className="govuk-breadcrumbs__link"
|
||||||
>
|
>
|
||||||
{t("common:breadcrumb-search-results")}
|
{t("common:breadcrumb-search-results")}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import { setCurrentPage } from "../../store/currentView/action";
|
|||||||
import { setDocumentDetails } from "../../store/searchOutput/action";
|
import { setDocumentDetails } from "../../store/searchOutput/action";
|
||||||
|
|
||||||
const DocumentDetails = (props) => {
|
const DocumentDetails = (props) => {
|
||||||
let { t } = useTranslation();
|
let { t, lang } = useTranslation();
|
||||||
const firstRender = useRef(false);
|
const firstRender = useRef(false);
|
||||||
const {
|
const {
|
||||||
incidentid,
|
incidentid,
|
||||||
@@ -504,7 +504,7 @@ const DocumentDetails = (props) => {
|
|||||||
</p>
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<button onClick={clearCheckboxes}>
|
<button onClick={clearCheckboxes}>
|
||||||
Clear filter
|
{t("search:clear-filter-button-label")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="govuk-checkboxes govuk-checkboxes--small">
|
<div className="govuk-checkboxes govuk-checkboxes--small">
|
||||||
@@ -525,7 +525,10 @@ const DocumentDetails = (props) => {
|
|||||||
className="govuk-label-s govuk-checkboxes__label"
|
className="govuk-label-s govuk-checkboxes__label"
|
||||||
htmlFor={"all" + "__" + 0}
|
htmlFor={"all" + "__" + 0}
|
||||||
>
|
>
|
||||||
All - (
|
{router.locale == "cy"
|
||||||
|
? "Pawb"
|
||||||
|
: "All"}{" "}
|
||||||
|
- (
|
||||||
{documentTypes.reduce(
|
{documentTypes.reduce(
|
||||||
(accumulator, currentItem) => {
|
(accumulator, currentItem) => {
|
||||||
return (
|
return (
|
||||||
@@ -605,7 +608,7 @@ const DocumentDetails = (props) => {
|
|||||||
setCurrentPage(1);
|
setCurrentPage(1);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Filter documents
|
{t("search:filter-documents-label")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{documentDetailsObj["@odata.count"] > 5 && (
|
{documentDetailsObj["@odata.count"] > 5 && (
|
||||||
@@ -1032,6 +1035,7 @@ const DocumentDetails = (props) => {
|
|||||||
orderByState,
|
orderByState,
|
||||||
getDocumentTypes,
|
getDocumentTypes,
|
||||||
getDocumentResults,
|
getDocumentResults,
|
||||||
|
lang,
|
||||||
]);
|
]);
|
||||||
return (
|
return (
|
||||||
<div className="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
|
|||||||
@@ -66,5 +66,7 @@
|
|||||||
"searchresults-show-records-label-a": "Dangos",
|
"searchresults-show-records-label-a": "Dangos",
|
||||||
"searchresults-show-records-label-b": "cofnodion",
|
"searchresults-show-records-label-b": "cofnodion",
|
||||||
"searchresults-created-on-label": "Crëwyd ar",
|
"searchresults-created-on-label": "Crëwyd ar",
|
||||||
"address-search-appellant-validation": "Mae angen rhan o'r cyfeiriad i chwilio gydag enw"
|
"address-search-appellant-validation": "Mae angen rhan o'r cyfeiriad i chwilio gydag enw",
|
||||||
|
"filter-documents-label": "Hidlo dogfennau",
|
||||||
|
"clear-filter-button-label": "Clirio'r hidlydd"
|
||||||
}
|
}
|
||||||
@@ -66,5 +66,7 @@
|
|||||||
"searchresults-show-records-label-a": "Show",
|
"searchresults-show-records-label-a": "Show",
|
||||||
"searchresults-show-records-label-b": "records",
|
"searchresults-show-records-label-b": "records",
|
||||||
"searchresults-created-on-label": "Created on",
|
"searchresults-created-on-label": "Created on",
|
||||||
"address-search-appellant-validation": "Need part of the address to search with a name"
|
"address-search-appellant-validation": "Need part of the address to search with a name",
|
||||||
|
"filter-documents-label": "Filter documents",
|
||||||
|
"clear-filter-button-label": "Clear filter"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user