feat: Add read-only collections (#1991)

closes #1017
This commit is contained in:
Tom Moor
2021-03-30 21:02:08 -07:00
committed by GitHub
parent d7acf616cf
commit 7e1b07ef98
50 changed files with 940 additions and 558 deletions

View File

@@ -15,7 +15,7 @@ export default class Collection extends BaseModel {
description: string;
icon: string;
color: string;
private: boolean;
permission: "read" | "read_write" | void;
sharing: boolean;
index: string;
documents: NavigationNode[];
@@ -25,11 +25,6 @@ export default class Collection extends BaseModel {
sort: { field: string, direction: "asc" | "desc" };
url: string;
@computed
get isPrivate(): boolean {
return this.private;
}
@computed
get isEmpty(): boolean {
return this.documents.length === 0;
@@ -121,7 +116,7 @@ export default class Collection extends BaseModel {
"description",
"sharing",
"icon",
"private",
"permission",
"sort",
"index",
]);