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:
parent
7833da8365
commit
670a10d8ed
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue