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 a44ba94 commit b6bb617
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This changelog also serves to acknowledge the incredible people who've contribut

## [Unreleased]
* Unordered lists in user provided custom text (eg /about) now display with discs ('bullets') #777, #779
* 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 b6bb617

Please sign in to comment.