0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Updated newsletter model - removed default and added slug

refs https://github.com/TryGhost/Ghost/pull/14428
refs https://github.com/TryGhost/Ghost/pull/14436

- `default` is now represented by the first newsletter when ordered by `sort_order`
- `slug` has been added to match pattern for all resources used in filter queries to have a slug
  - no current use-case so it's not exposed in the UI
This commit is contained in:
Kevin Ansfield 2022-04-07 13:49:54 +01:00
parent 7833da8365
commit 670a10d8ed

View file

@ -5,6 +5,7 @@ export default class Newsletter extends Model.extend(ValidationEngine) {
validationType = 'newsletter';
@attr name;
@attr slug;
@attr description;
@attr senderName;
@ -26,7 +27,4 @@ export default class Newsletter extends Model.extend(ValidationEngine) {
@attr({defaultValue: 'sans_serif'}) bodyFontCategory;
@attr() footerContent;
@attr({defaultValue: true}) showBadge;
// TODO: delete attr, incorrectly needed for save to complete in API
@attr({defaultValue: false}) default;
}