mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
a544005c1f
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>
12 lines
303 B
JavaScript
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);
|
|
}
|
|
}
|