Skip to content

Commit

Permalink
Add support check for tags in PhotoDetails component
Browse files Browse the repository at this point in the history
  • Loading branch information
SmilyOrg committed Sep 15, 2024
1 parent efdbcde commit ac37439
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/src/components/PhotoDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</div>
<dl class="contents" v-if="photo">
<tags
v-if="tagsSupported"
:region="region"
:tags="region?.data?.tags"
:loading="loading"
Expand Down Expand Up @@ -74,6 +75,7 @@ import { useRegion } from '../use';
import DetailItem from './DetailItem.vue';
import Map from './Map.vue';
import Tags from './Tags.vue';
import { useApi } from '../api';
const props = defineProps({
scene: Object,
Expand All @@ -89,6 +91,9 @@ const {
regionId,
} = toRefs(props);
const { data: capabilities } = useApi(() => "/capabilities");
const tagsSupported = computed(() => capabilities.value?.tags?.supported);
const background = ref(null);
const container = ref(null);
Expand Down

0 comments on commit ac37439

Please sign in to comment.