diff options
author | bobzel <zzzman@gmail.com> | 2020-08-24 18:09:48 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-24 18:09:48 -0400 |
commit | 2e4ab06f38323bba06a4d77c04da1507bac5657f (patch) | |
tree | 26daaa5b4f8c76a7e990a9ad81d6cdcae9108e71 /src/fields/Doc.ts | |
parent | 385fc8bbcb36b5f062f0202a4fb74bcfba00b150 (diff) |
moved contexts from properties button to properties view section
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 3 |
1 files changed, 3 insertions, 0 deletions
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; |