mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
76c1341666
refs TryGhost/Ghost#11537 - Adds support for "Complimentary" plan toggle only when editing an existing member. The same functionality for adding a new member was left out intentionally for simplicity sake. Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
15 lines
464 B
JavaScript
15 lines
464 B
JavaScript
import Model, {attr} from '@ember-data/model';
|
|
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
|
|
|
export default Model.extend(ValidationEngine, {
|
|
validationType: 'member',
|
|
|
|
name: attr('string'),
|
|
email: attr('string'),
|
|
note: attr('string'),
|
|
createdAtUTC: attr('moment-utc'),
|
|
stripe: attr('member-subscription'),
|
|
subscribed: attr('boolean', {defaultValue: true}),
|
|
comped: attr('boolean', {defaultValue: false})
|
|
});
|