Skip to content
Merged
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
5 changes: 0 additions & 5 deletions app/components/forms/orders/order-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { run } from '@ember/runloop';
import { inject as service } from '@ember/service';
import FormMixin from 'open-event-frontend/mixins/form';
import moment from 'moment';
import { countries } from 'open-event-frontend/utils/dictionary/demography';
import { groupBy, orderBy } from 'lodash-es';
import {
compulsoryProtocolValidUrlPattern, validTwitterProfileUrlPattern, validFacebookProfileUrlPattern,
Expand Down Expand Up @@ -467,10 +466,6 @@ export default Component.extend(FormMixin, {
return groupBy(this.fields.toArray(), field => field.get('form'));
}),

countries: computed(function() {
return orderBy(countries, 'name');
}),

genders: orderBy(genders, 'name'),

actions: {
Expand Down
10 changes: 10 additions & 0 deletions app/components/widgets/forms/billing-info.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { countries } from 'open-event-frontend/utils/dictionary/demography';
import Component from '@ember/component';
import { computed } from '@ember/object';
import { orderBy } from 'lodash-es';

export default Component.extend({
countries: computed(function() {
return orderBy(countries, 'name');
})
});