mirror of
https://github.com/outline/outline.git
synced 2026-04-29 14:09:31 -05:00
fix: Pragmatic fix to drafts count in sidebar, closes #7219
This commit is contained in:
@@ -116,7 +116,9 @@ function AppSidebar() {
|
||||
{t("Drafts")}
|
||||
{documents.totalDrafts > 0 ? (
|
||||
<Drafts size="xsmall" type="tertiary">
|
||||
{documents.totalDrafts}
|
||||
{documents.totalDrafts > 25
|
||||
? "25+"
|
||||
: documents.totalDrafts}
|
||||
</Drafts>
|
||||
) : null}
|
||||
</Flex>
|
||||
|
||||
@@ -367,8 +367,8 @@ export default class DocumentsStore extends Store<Document> {
|
||||
this.fetchNamedPage("starred", options);
|
||||
|
||||
@action
|
||||
fetchDrafts = (options?: PaginationParams): Promise<Document[]> =>
|
||||
this.fetchNamedPage("drafts", options);
|
||||
fetchDrafts = (options: PaginationParams = {}): Promise<Document[]> =>
|
||||
this.fetchNamedPage("drafts", { limit: 100, ...options });
|
||||
|
||||
@action
|
||||
fetchOwned = (options?: PaginationParams): Promise<Document[]> =>
|
||||
|
||||
Reference in New Issue
Block a user