fix(frontend): various fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
c12df03b5d
commit
456dc36f64
|
@ -39,7 +39,9 @@
|
|||
<o-icon :icon="addressToPoiInfos(option).poiIcon.icon" />
|
||||
<b>{{ addressToPoiInfos(option).name }}</b>
|
||||
</p>
|
||||
<small>{{ addressToPoiInfos(option).alternativeName }}</small>
|
||||
<p class="text-small">
|
||||
{{ addressToPoiInfos(option).alternativeName }}
|
||||
</p>
|
||||
</template>
|
||||
<template #empty>
|
||||
<template v-if="isFetching">{{ t("Searching…") }}</template>
|
||||
|
|
|
@ -155,6 +155,7 @@ export function iconForAddress(address: IAddress): IPOIIcon {
|
|||
}
|
||||
|
||||
export function addressFullName(address: IAddress): string {
|
||||
if (!address) return "";
|
||||
const { name, alternativeName } = addressToPoiInfos(address);
|
||||
if (name && alternativeName) {
|
||||
return `${name}, ${alternativeName}`;
|
||||
|
|
Loading…
Reference in a new issue