mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03:00
Fixed currencies for launch wizard (#1854)
refs https://github.com/TryGhost/Admin/commit/34b2162c We moved the definition of currencies to a utils file and this was missed.
This commit is contained in:
parent
7744a78594
commit
2b16d482fa
@ -1,10 +1,18 @@
|
|||||||
import Component from '@glimmer/component';
|
import Component from '@glimmer/component';
|
||||||
import {CURRENCIES} from 'ghost-admin/components/gh-members-payments-setting';
|
|
||||||
import {action} from '@ember/object';
|
import {action} from '@ember/object';
|
||||||
|
import {currencies} from 'ghost-admin/utils/currency';
|
||||||
import {inject as service} from '@ember/service';
|
import {inject as service} from '@ember/service';
|
||||||
import {task} from 'ember-concurrency-decorators';
|
import {task} from 'ember-concurrency-decorators';
|
||||||
import {tracked} from '@glimmer/tracking';
|
import {tracked} from '@glimmer/tracking';
|
||||||
|
|
||||||
|
const CURRENCIES = currencies.map((currency) => {
|
||||||
|
return {
|
||||||
|
value: currency.isoCode.toLowerCase(),
|
||||||
|
label: `${currency.isoCode} - ${currency.name}`,
|
||||||
|
isoCode: currency.isoCode
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
export default class GhLaunchWizardSetPricingComponent extends Component {
|
export default class GhLaunchWizardSetPricingComponent extends Component {
|
||||||
@service config;
|
@service config;
|
||||||
@service membersUtils;
|
@service membersUtils;
|
||||||
|
Loading…
Reference in New Issue
Block a user