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:
Fabien 'egg' O'Carroll 2021-02-25 13:07:57 +00:00 committed by GitHub
parent 7744a78594
commit 2b16d482fa

View File

@ -1,10 +1,18 @@
import Component from '@glimmer/component';
import {CURRENCIES} from 'ghost-admin/components/gh-members-payments-setting';
import {action} from '@ember/object';
import {currencies} from 'ghost-admin/utils/currency';
import {inject as service} from '@ember/service';
import {task} from 'ember-concurrency-decorators';
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 {
@service config;
@service membersUtils;