Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/annotation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Model from 'ampersand-model'
import ResourceCollection from './resource-collection'
import Resource from './resource'

export default Model.extend({
idAttribute: '@id',
Expand All @@ -16,8 +16,8 @@ export default Model.extend({
about: 'string'
},

collections: {
resource: ResourceCollection
children: {
resource: Resource
},

parse: function (response) {
Expand Down
3 changes: 2 additions & 1 deletion src/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default Model.extend({
},
label: 'string',
height: 'number',
width: 'number'
width: 'number',
thumbnail: 'string'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then this should be thumbnail: Thumbnail

},

collections: {
Expand Down
6 changes: 3 additions & 3 deletions src/resource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Model from 'ampersand-model'
import ServiceCollection from './service-collection'
import Service from './service'

export default Model.extend({
idAttribute: '@id',
Expand All @@ -12,8 +12,8 @@ export default Model.extend({
width: 'number'
},

collections: {
service: ServiceCollection
children: {
service: Service
},

parse: function (response) {
Expand Down