From 2e4ab06f38323bba06a4d77c04da1507bac5657f Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 24 Aug 2020 18:09:48 -0400 Subject: moved contexts from properties button to properties view section --- src/fields/Doc.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fields') diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index c2b491454..6218fda26 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -344,6 +344,9 @@ export namespace Doc { export function IsBaseProto(doc: Doc) { return GetT(doc, "baseProto", "boolean", true); } + export function IsSystem(doc: Doc) { + return GetT(doc, "system", "boolean", true); + } export async function SetInPlace(doc: Doc, key: string, value: Field | undefined, defaultProto: boolean) { const hasProto = doc.proto instanceof Doc; const onDeleg = Object.getOwnPropertyNames(doc).indexOf(key) !== -1; -- cgit v1.2.3-70-g09d2