mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +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>
11 lines
292 B
JavaScript
11 lines
292 B
JavaScript
import Model, {attr} from '@ember-data/model';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'product',
|
|
|
|
name: attr('string'),
|
|
slug: attr('string'),
|
|
stripePrices: attr('stripe-price')
|
|
});
|