-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add search result details component #11
base: main
Are you sure you want to change the base?
Conversation
<template #item="image"> | ||
<div class="border border-surface-200 dark:border-surface-700 rounded m-2 p-4"> | ||
<div class="mb-4"> | ||
<div class="relative mx-auto"> | ||
<div style="padding: 3px"> | ||
<img :src="image.data" height="120px" width="120px" class="w-full rounded" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be indented
function selectResult(resourceid: string) { | ||
resultSelected.value = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is unneeded if you're setting the value in the next line
@@ -15,13 +16,19 @@ const props = defineProps({ | |||
}, | |||
}); | |||
|
|||
function highlightResult(resourceid: string) { | |||
if (!resultSelected.value) { | |||
resultsSelected.value = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to assign an empty array if in the next line you're reassigning to a different array.
There's several build errors when running "build_development" that should be easy fixes. |
Adds a component to display a simple report when a user select 'show more' in search result item. It is also displayed in lieu of a pop-up when a user clicks a feature on the map.