Ghost/ghost/admin/app/helpers/currency-symbol.js
Rishabh Garg a544005c1f Wired products data to Product settings screen (#1927)
refs https://github.com/TryGhost/Team/issues/627

Wires the real Products data from API to the mock Product settings screen including Product Prices list as well as opening of edit/new price modals. The new Product setting is still behind the developer experiment flag as is under active development, the changes in this commit only allows readonly data but not save/edit upstream.

Co-authored-by: Fabien O'Carroll <fabien@allou.is>
2021-04-22 22:17:19 +05:30

12 lines
303 B
JavaScript

import Helper from '@ember/component/helper';
import {getSymbol} from 'ghost-admin/utils/currency';
import {inject as service} from '@ember/service';
export default class CurrencySymbolHelper extends Helper {
@service feature;
compute([currency]) {
return getSymbol(currency);
}
}