Skip to content

Commit

Permalink
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -19,6 +19,9 @@ module.exports = {
'plugin:ember/recommended',
'plugin:prettier/recommended',
],
rules: {
'ember/routes-segments-snake-case': 'off', // https://github.com/ember-cli/eslint-plugin-ember/issues/374
},
env: {
browser: true,
},
4 changes: 2 additions & 2 deletions app/router.js
Original file line number Diff line number Diff line change
@@ -106,12 +106,12 @@ Router.map(function () {
this.route('eredienst-mandatenbeheer', function () {
this.route('mandatarissen');

this.route('mandataris', { path: '/mandataris/:mandaat_id' }, function () {
this.route('mandataris', { path: '/mandataris/:mandateeId' }, function () {
this.route('edit');

this.route('contact-points', function () {
this.route('new');
this.route('edit', { path: '/:contact_id/edit' });
this.route('edit', { path: '/:contactId/edit' });
});
});
this.route('new');
2 changes: 1 addition & 1 deletion app/routes/eredienst-mandatenbeheer/mandataris.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import Route from '@ember/routing/route';

export default class EredienstMandatenbeheerMandatarisRoute extends Route {
model(params) {
return this.store.findRecord('worship-mandatee', params.mandaat_id, {
return this.store.findRecord('worship-mandatee', params.mandateeId, {
include: 'is-bestuurlijke-alias-van,bekleedt,type-half',
});
}
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import Route from '@ember/routing/route';

export default class EredienstMandatenbeheerMandatarisContactPointsEditRoute extends Route {
model(params) {
return this.store.findRecord('contact-punt', params.contact_id, {
return this.store.findRecord('contact-punt', params.contactId, {
include: 'adres',
});
}

0 comments on commit dc4fe84

Please sign in to comment.