Mercurial > gemma
view client/src/components/PageNotFound.vue @ 5586:215e6ba9651b surveysperbottleneckid
Added property "displayName" to bottlenecks.
Before displayed, bottlenecks ordered by country
are now checked for doubles per country.
In case a double is found the displayName is enriched with the
bottleneck_id. Otherwise the displayName is equal to "name" or "objnam".
Example:
const testList = [
{
properties: {
responsible_country: "AT",
name: "Bananas",
bottleneck_id: "BN1"
}
},
{
properties: {
responsible_country: "DE",
name: "Bananas",
bottleneck_id: "BN2"
}
},
{
properties: {
responsible_country: "DE",
name: "Bananas",
bottleneck_id: "BN3"
}
}
];
is rendered to:
AT
Bananas
DE
Bananas / BN2
Bananas / BN3
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 04 Apr 2022 15:12:43 +0200 |
parents | 6c5364ff0abb |
children |
line wrap: on
line source
<template> <div class="main d-flex flex-row" style="position: relative;"> <Spacer /> <div class="my-auto mx-auto"> <h1> <font-awesome-icon icon="frown-open" fixed-width /> We are sorry. The ressource you requested could not be found. </h1> </div> </div> </template> <script> export default { name: "pagenotfound", components: { Spacer: () => import("@/components/Spacer") } }; </script> <style></style>