mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Display category names in documents list (space view)
We pre-fetch category names and attach them to documents.
This commit is contained in:
parent
1d4a20cdfe
commit
5467771542
8 changed files with 804 additions and 722 deletions
|
@ -31,14 +31,18 @@ export default Model.extend({
|
|||
versionId: attr('string'),
|
||||
versionOrder: attr('number', { defaultValue: 0 }),
|
||||
groupId: attr('string'),
|
||||
created: attr(),
|
||||
revised: attr(),
|
||||
|
||||
// read-only presentation field
|
||||
category: attr({defaultValue() {return [];}}),
|
||||
|
||||
// client-side property
|
||||
selected: attr('boolean', { defaultValue: false }),
|
||||
slug: computed('name', function () {
|
||||
return stringUtil.makeSlug(this.get('name'));
|
||||
}),
|
||||
created: attr(),
|
||||
revised: attr(),
|
||||
|
||||
// client-side property
|
||||
selected: attr('boolean', { defaultValue: false }),
|
||||
|
||||
isDraft: computed('lifecycle', function () {
|
||||
let constants = this.get('constants');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue