Skip to content

Commit

Permalink
lisatty katselmoinnin pohjalta virheilmoituksia
Browse files Browse the repository at this point in the history
  • Loading branch information
kettunju committed Oct 7, 2022
1 parent 42b6a60 commit 308b043
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/kansalaisenEtusivu/Hakutulokset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Hakutulokset({ hakutulos, ladataan }: Props) {
const { t } = useTranslation();

if (!hakutulos && ladataan) {
return <>Ladataan...</>;
return <>{t("common:ladataan")}</>;
}

return (
Expand Down
2 changes: 2 additions & 0 deletions src/locales/fi/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"projektin_lataamisessa_virhe": "Projektin lataamisessa tapahtui virhe",
"ladataan": "Ladataan...",
"sivua-ei-loydy": "Sivua ei löydy",
"siirrytaan-aktiiviseen-vaiheeseen": "Siirrytään aktiiviseen vaiheeseen...",
"vayla-tietosuojasivu": "https://www.vayla.fi/tietosuoja",
Expand Down
2 changes: 2 additions & 0 deletions src/locales/sv/common.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"projektin_lataamisessa_virhe": "RUOTSIKSI Projektin lataamisessa tapahtui virhe",
"ladataan": "RUOTSIKSI Ladataan...",
"sivua-ei-loydy": "RUOTSIKSI Sivua ei löydy",
"siirrytaan-aktiiviseen-vaiheeseen": "RUOTSIKSI Siirrytään aktiiviseen vaiheeseen...",
"vayla-tietosuojasivu": "https://vayla.fi/sv/trafikledsverket/kontaktuppgifter/dataskyddspolicy",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/suunnitelma/[oid]/[...all].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function ProjektiPage({ setRouteLabels }: PageProps) {
}, [projekti, router]);

if (error) {
return <></>;
return <>{t("common:projektin_lataamisessa_virhe")}</>;
}

if (!projekti) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/suunnitelma/[oid]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function ProjektiPage({ setRouteLabels }: PageProps) {
}, [projekti, router]);

if (error) {
return <></>;
return <>{t("common:projektin_lataamisessa_virhe")}</>;
}

if (!projekti) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/yllapito/perusta/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const PerustaTable = ({ hakuTulos }: PerustaTableProps) => {
const { t } = useTranslation("velho-haku");
const columns: Column<VelhoHakuTulos>[] = useMemo(
() => [
{ Header: "Asiatunnus", accessor: "asiatunnus" },
{ Header: "Asiatunnus", accessor: "asianumero" },
{ Header: "Nimi", accessor: "nimi", minWidth: 400 },
{
Header: "Tyyppi",
Expand Down

0 comments on commit 308b043

Please sign in to comment.