Skip to content

Commit

Permalink
Fix prop case in landing_page.html.erb to match Orientation.vue
Browse files Browse the repository at this point in the history
Co-authored-by: maebeale <maebeale@gmail.com>
  • Loading branch information
solebared and maebeale committed Oct 12, 2020
1 parent 5f6d17d commit d12fea6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ We're still in the [initial development phase](https://www.jering.tech/articles/

This changelog also serves to acknowledge the incredible people who've contributed brilliance, effort and being. Their handles are listed under the first release they each touched. 💗🙏🏾

## [Unreleased]
* Allow custom text on landing page to override default text #769, #780

## [0.3.0] - 2020-10-05
### Breaking changes
Expand Down
6 changes: 2 additions & 4 deletions app/javascript/entry_points/orientation.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import Vue from 'vue_config'
import Orientation from 'pages/Orientation'

export default function(el, props = {organization: 'Mutual Aid'}) {
export default function(el, props) {
new Vue({
el,
render(h) {
return h(Orientation, {
props: props,
})
return h(Orientation, {props})
}
})
}
6 changes: 3 additions & 3 deletions app/views/public/landing_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
document.addEventListener('DOMContentLoaded', () => {
EntryPoints.orientation('#orientation', {
organization: "<%= @organization_name %>",
landingPageTextWhat: "<%= @landing_page_text_what %>",
landingPageTextWho: "<%= @landing_page_text_who %>",
landingPageTextHow: "<%= @landing_page_text_how %>"
landing_page_text_what: "<%= @landing_page_text_what %>",
landing_page_text_who: "<%= @landing_page_text_who %>",
landing_page_text_how: "<%= @landing_page_text_how %>"
})
})
</script>

0 comments on commit d12fea6

Please sign in to comment.