Skip to content

Commit

Permalink
update query and page
Browse files Browse the repository at this point in the history
  • Loading branch information
jendiamond committed Aug 18, 2023
1 parent b651732 commit 1ec5944
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
18 changes: 8 additions & 10 deletions gql/queries/LocationDetail.gql
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ query LocationDetail($slug: [String!]) {
altText
}
}

authors: staffMember {
id
slug
Expand Down Expand Up @@ -153,14 +152,14 @@ query LocationDetail($slug: [String!]) {
}
requiresRegistration
eventDescription
#heroImage {
# ... on heroImage_heroImage_BlockType {
# id
# image {
# ...Image
# }
#}
#}
heroImage {
... on heroImage_heroImage_BlockType {
id
image {
...Image
}
}
}
eventType {
title
}
Expand All @@ -185,7 +184,6 @@ query LocationDetail($slug: [String!]) {
title
summary
dateUpdated

ongoing
heroImage {
... on heroImage_heroImage_BlockType {
Expand Down
15 changes: 12 additions & 3 deletions pages/visit/locations/_slug.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
page.amenitiesIcons.length ||
parsedSpaces.length
"
color="visit"
class="divider-way-finder"
color="visit"
/>
</section-wrapper>

Expand All @@ -51,6 +51,7 @@
:section-titles= h2Array
/>

<!-- HOURS -->
<section-wrapper
v-if="page.libcalLocationIdForHours ||
page.amenitiesIcons.length ||
Expand All @@ -64,6 +65,7 @@
:lid="page.libcalLocationIdForHours"
/>

<!-- AMENITIES -->
<divider-general
v-if="page.amenitiesIcons.length"
class="divider-general"
Expand All @@ -75,6 +77,7 @@
class="amenities"
/>

<!-- SPACES -->
<divider-general
v-if="parsedSpaces.length"
class="divider-general"
Expand All @@ -87,11 +90,12 @@
/>
</section-wrapper>

<!-- SERVICES & RESOURCES -->
<section-wrapper theme="divider">
<divider-way-finder
v-if="page.resourceServiceWorkshop.length"
color="visit"
class="divider-way-finder"
color="visit"
/>
</section-wrapper>

Expand All @@ -110,6 +114,7 @@
</nuxt-link>
</section-wrapper>

<!-- EXHIBITIONS -->
<section-wrapper theme="divider">
<divider-way-finder
v-if="mergeSortEventsExhibitions.length"
Expand All @@ -136,11 +141,12 @@
</nuxt-link> -->
</section-wrapper>

<!-- FPB - FLEXIBLE PAGE BLOCKS -->
<section-wrapper theme="divider">
<divider-way-finder
v-if="page.blocks.length > 0"
color="visit"
class="divider-way-finder"
color="visit"
/>
</section-wrapper>

Expand All @@ -149,6 +155,7 @@
:blocks="page.blocks"
/>

<!-- ABOUT -->
<section-wrapper theme="divider">
<divider-way-finder
v-if="page.about"
Expand All @@ -168,13 +175,15 @@
/>
</section-wrapper>

<!-- TODO MAP -->
<!-- <section-wrapper theme="divider">
<divider-way-finder
v-if="page.about"
color="visit"
class="divider-way-finder"
/>
</section-wrapper>
<section-wrapper>
<h2
v-if="page.campusMapId"
Expand Down

0 comments on commit 1ec5944

Please sign in to comment.