Skip to content

Commit

Permalink
fix: APPS-2380_fix-button-banner-header (#716)
Browse files Browse the repository at this point in the history
* fix buttonUrl

* finalize working button

* update component library
  • Loading branch information
jendiamond authored Aug 4, 2023
1 parent 206ffb9 commit 9e04bec
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
3 changes: 1 addition & 2 deletions gql/queries/ServiceOrResourceOrWorkshopDetail.gql
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ query ServiceOrResourceOrWorkshopDetail($slug: [String!]) {
sectionHandle
slug
uri
button: buttonUrl {
buttonUrl {
... on buttonUrl_button_BlockType {
id
buttonText
buttonUrl
}
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"sass": "^1.45.2",
"sass-loader": "^10.1.1",
"ucla-library-design-tokens": "^5.4.1",
"ucla-library-website-components": "^2.38.0",
"ucla-library-website-components": "^2.38.1",
"vue-svg-loader": "^0.16.0",
"vue-template-compiler": "^2.6.12"
}
Expand Down
17 changes: 10 additions & 7 deletions pages/help/services-resources/_slug.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template lang="html">
<template>
<main id="main" class="page page-service-detail">
<!-- ServiceOrResource Detail -->
<div v-if="page.serviceOrResource">
Expand Down Expand Up @@ -37,13 +37,13 @@
:category="page.serviceOrResource.type"
:title="page.serviceOrResource.title"
:text="page.serviceOrResource.text"
:to="parsedButtonTo"
:prompt="parsedButtonText"
:to="parsedButtonTo"
/>
</section-wrapper>

<section-wrapper theme="divider">
<divider-way-finder color="help" />
</section-wrapper>
<section-wrapper theme="divider">
<divider-way-finder />
</section-wrapper>

<page-anchor
Expand Down Expand Up @@ -93,6 +93,7 @@
:title="page.workshopSeries.title"
parent-title="Services & Resources"
/>

<banner-text
v-if="
page.workshopSeries &&
Expand Down Expand Up @@ -138,6 +139,7 @@
class="content"
:blocks="page.workshopSeries.blocks"
/>

<section-wrapper
v-if="page.workshopSeries.blocks.length > 0"
theme="divider"
Expand Down Expand Up @@ -214,6 +216,7 @@ import _get from "lodash/get"
import removeTags from "~/utils/removeTags"
// GQL
import SERVICE_OR_RESOURCE_OR_WORKSHOPSERIES_DETAIL from "~/gql/queries/ServiceOrResourceOrWorkshopDetail"
export default {
async asyncData({ $graphql, params, $elasticsearchplugin, error }) {
// Do not remove testing live preview
Expand Down Expand Up @@ -321,10 +324,10 @@ export default {
})
},
parsedButtonText() {
return _get(this.page.serviceOrResource, "button[0].buttonText", "")
return _get(this.page.serviceOrResource, "buttonUrl[0].buttonText", "")
},
parsedButtonTo() {
return _get(this.page.serviceOrResource, "button[0].buttonUrl", "")
return _get(this.page.serviceOrResource, "buttonUrl[0].buttonUrl", "")
},
associatedEvents() {
return this.page.workshopSeries.event.map((obj) => {
Expand Down

19 comments on commit 9e04bec

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64cd56a103c12f492d21d54d--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64cd5b4a842a6d544b97c3cd--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64cd5c39dad64a55032ba9fd--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64ce05378a3f381ad519346f--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64ceade98a3f3865f7193496--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64cf56dc4077e0314f8fe68e--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64cfff6f4077e07eee8fe4f0--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d0a85ea3461a475c47e811--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d150e7ee40ea285a3b38df--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d1f9c64140a5411e5dfdcd--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d2930cadf7ad1a9aa178b4--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d2a27d0595c0057dad8684--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d34b59cdf03e3c569976cd--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d40deabd9faa13f8636b91--uclalibrary.netlify.app

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://www.library.ucla.edu as production
πŸš€ Deployed on https://64d5043c7c0c66034dd2dd66--uclalibrary.netlify.app

Please sign in to comment.