feat: Show drafts in sidebar when viewing (#2820)

This commit is contained in:
Tom Moor
2021-12-11 09:34:36 -08:00
committed by GitHub
parent e5b4186faa
commit 7aa4709e69
39 changed files with 445 additions and 246 deletions

View File

@@ -1,13 +1,23 @@
import { observable } from "mobx";
import BaseModel from "./BaseModel";
import User from "./User";
import Field from "./decorators/Field";
class Share extends BaseModel {
@Field
@observable
id: string;
url: string;
@Field
@observable
published: boolean;
@Field
@observable
includeChildDocuments: boolean;
@Field
@observable
documentId: string;
documentTitle: string;
@@ -16,7 +26,7 @@ class Share extends BaseModel {
lastAccessedAt: string | null | undefined;
includeChildDocuments: boolean;
url: string;
createdBy: User;