Skip to content

Use routes-js in tickets/wizard.js #970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: supporter_level_goal
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client/js/tickets/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ require('../cards/create')
const request = require('../common/super-agent-promise')
const create_card = require('../cards/create')
const format_err = require('../common/format_response_error')
var path = '/nonprofits/' + app.nonprofit_id + '/events/' + appl.event_id + '/tickets'
const {nonprofitEventTicketsPath} = require('../../../app/javascript/routes')
const path = nonprofitEventTicketsPath(app.nonprofit_id, appl.event_id)

const autocomplete = require('../components/address-autocomplete-viewscript');

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"test": "rake -v spec && yarn build && yarn jest",
"export-button-config": "bundle exec rake settings:generate_json",
"export-i18n": "bundle exec rake settings:combine_translations",
"export-routes": "bundle exec rails js:routes:typescript",
"tsc": "tsc"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e
set -o pipefail
export DATABASE_URL=${BUILD_DATABASE_URL:-postgres://admin:password@localhost/commitchange_development_legacy}
echo $DATABASE_URL
yarn export-button-config && yarn export-i18n
yarn export-button-config && yarn export-i18n && yarn export-routes

if [ -n "$HOUDINI_WATCH" ];
then
Expand Down
Loading