mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-02-12 23:12:48 +00:00
Other should be placeholder
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
camera:type=fixed<br>
|
||||
surveillance=public<br>
|
||||
surveillance:zone=traffic<br>
|
||||
manufacturer=<span class="highlight">{{ selectedBrand.name }}</span><br>
|
||||
manufacturer:wikidata=<span class="highlight">{{ selectedBrand.wikidata }}</span><br>
|
||||
manufacturer=<span :class="highlightClass(selectedBrand)">{{ selectedBrand.name }}</span><br>
|
||||
manufacturer:wikidata=<span :class="highlightClass(selectedBrand)">{{ selectedBrand.wikidata }}</span><br>
|
||||
</DFCode>
|
||||
|
||||
<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',
|
||||
},
|
||||
{
|
||||
name: 'brand goes here',
|
||||
name: '[Enter Manufacturer]',
|
||||
nickname: 'Other',
|
||||
wikidata: 'wikidata goes here',
|
||||
wikidata: '[Enter WikiData ID]',
|
||||
exampleImage: '/other-1.jpeg',
|
||||
}
|
||||
];
|
||||
const selectedBrand: Ref<WikidataItem> = ref(alprBrands[0]);
|
||||
|
||||
function highlightClass(item: WikidataItem): string {
|
||||
return item.nickname === 'Other' ? 'placeholder' : 'highlight';
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user