mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-09-28 19:51:51 +02:00
Other should be placeholder
This commit is contained in:
@@ -34,8 +34,8 @@
|
|||||||
camera:type=fixed<br>
|
camera:type=fixed<br>
|
||||||
surveillance=public<br>
|
surveillance=public<br>
|
||||||
surveillance:zone=traffic<br>
|
surveillance:zone=traffic<br>
|
||||||
manufacturer=<span class="highlight">{{ selectedBrand.name }}</span><br>
|
manufacturer=<span :class="highlightClass(selectedBrand)">{{ selectedBrand.name }}</span><br>
|
||||||
manufacturer:wikidata=<span class="highlight">{{ selectedBrand.wikidata }}</span><br>
|
manufacturer:wikidata=<span :class="highlightClass(selectedBrand)">{{ selectedBrand.wikidata }}</span><br>
|
||||||
</DFCode>
|
</DFCode>
|
||||||
|
|
||||||
<h5 class="text-center mt-4 serif">and if operator is known</h5>
|
<h5 class="text-center mt-4 serif">and if operator is known</h5>
|
||||||
@@ -89,14 +89,18 @@ const alprBrands: WikidataItem[] = [
|
|||||||
exampleImage: '/alprs/neology-2.jpg',
|
exampleImage: '/alprs/neology-2.jpg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'brand goes here',
|
name: '[Enter Manufacturer]',
|
||||||
nickname: 'Other',
|
nickname: 'Other',
|
||||||
wikidata: 'wikidata goes here',
|
wikidata: '[Enter WikiData ID]',
|
||||||
exampleImage: '/other-1.jpeg',
|
exampleImage: '/other-1.jpeg',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
const selectedBrand: Ref<WikidataItem> = ref(alprBrands[0]);
|
const selectedBrand: Ref<WikidataItem> = ref(alprBrands[0]);
|
||||||
|
|
||||||
|
function highlightClass(item: WikidataItem): string {
|
||||||
|
return item.nickname === 'Other' ? 'placeholder' : 'highlight';
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user