Skip to content

Commit

Permalink
handlenett-frontend: link to google the product
Browse files Browse the repository at this point in the history
if unsure, lets google it!
  • Loading branch information
maads committed Oct 24, 2024
1 parent 2ef889a commit d1df6cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion handlenett-frontend/components/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<label :class="{ 'complete': status }">
<input type="checkbox" :checked="status" @change="update"> {{ props.element?.name }}
</label>
<span @click="lmfgi">❔</span>
<div class="gi-creator">📝{{ createdBy }}</div>
</div>
<div class="button-group">
Expand All @@ -30,6 +31,10 @@ onMounted(() => {
status.value = props.element.isCompleted
})
const lmfgi = () => {
window.open(`https://www.google.com/search?q=bunnpris ${props.element.name}&udm=2`, '_blank')
}
const update = () => {
status.value = !status.value;
emit('changed', { id: props.element.id, name: props.element.name, isCompleted: status.value })
Expand Down Expand Up @@ -57,7 +62,7 @@ const createdBy = computed(() => {
font-weight: bold;
}
.gi-creator{
.gi-creator {
font-size: 0.8rem;
font-weight: 100;
padding-left: 1rem;
Expand Down

0 comments on commit d1df6cd

Please sign in to comment.