mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Removed trailing Admin model for Collections
ref https://linear.app/ghost/issue/ENG-1805/remove-collections-code - this was still lingering around because I forgot to delete it in the initial commit
This commit is contained in:
parent
379fc19ad5
commit
67e6a48c3f
1 changed files with 0 additions and 33 deletions
|
@ -1,33 +0,0 @@
|
|||
import Model from '@ember-data/model';
|
||||
import ValidationEngine from 'ghost-admin/mixins/validation-engine';
|
||||
import {attr} from '@ember-data/model';
|
||||
import {computed} from '@ember/object';
|
||||
import {inject as service} from '@ember/service';
|
||||
|
||||
export default Model.extend(ValidationEngine, {
|
||||
validationType: 'collection',
|
||||
|
||||
title: attr('string'),
|
||||
slug: attr('string'),
|
||||
description: attr('string'),
|
||||
type: attr('string', {defaultValue: 'manual'}),
|
||||
filter: attr('string'),
|
||||
featureImage: attr('string'),
|
||||
createdAtUTC: attr('moment-utc'),
|
||||
updatedAtUTC: attr('moment-utc'),
|
||||
createdBy: attr('number'),
|
||||
updatedBy: attr('number'),
|
||||
count: attr('raw'),
|
||||
|
||||
posts: attr('raw'),
|
||||
|
||||
postIds: computed('posts', function () {
|
||||
if (this.posts && this.posts.length) {
|
||||
return this.posts.map(post => post.id);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}),
|
||||
|
||||
feature: service()
|
||||
});
|
Loading…
Add table
Reference in a new issue