mirror of
https://github.com/outline/outline.git
synced 2026-11-30 17:10:36 +03:00
feat: Show drafts to author in collections (#1134)
This commit is contained in:
1 parent
c7aa261863
commit
541e4ebe37
1 file changed
+3
-11
@@ -77,19 +77,11 @@ export default class DocumentsStore extends BaseStore<Document> {
|
||||
}
|
||||
|
||||
leastRecentlyUpdatedInCollection(collectionId: string): Document[] {
|
||||
return orderBy(
|
||||
this.publishedInCollection(collectionId),
|
||||
'updatedAt',
|
||||
'asc'
|
||||
);
|
||||
return orderBy(this.inCollection(collectionId), 'updatedAt', 'asc');
|
||||
}
|
||||
|
||||
recentlyUpdatedInCollection(collectionId: string): Document[] {
|
||||
return orderBy(
|
||||
this.publishedInCollection(collectionId),
|
||||
'updatedAt',
|
||||
'desc'
|
||||
);
|
||||
return orderBy(this.inCollection(collectionId), 'updatedAt', 'desc');
|
||||
}
|
||||
|
||||
recentlyPublishedInCollection(collectionId: string): Document[] {
|
||||
@@ -101,7 +93,7 @@ export default class DocumentsStore extends BaseStore<Document> {
|
||||
}
|
||||
|
||||
alphabeticalInCollection(collectionId: string): Document[] {
|
||||
return naturalSort(this.publishedInCollection(collectionId), 'title');
|
||||
return naturalSort(this.inCollection(collectionId), 'title');
|
||||
}
|
||||
|
||||
searchResults(query: string): SearchResult[] {
|
||||
|
||||
Reference in new issue
Block a user