diff options
author | bob <bcz@cs.brown.edu> | 2019-02-15 12:48:05 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-15 12:48:05 -0500 |
commit | 1e5c20010544b12936fbc8dd0bddfb11b947fbd3 (patch) | |
tree | b471a22e7064d632ec9a492e9cdb2e16feb8f533 /src/fields/Document.ts | |
parent | c33295b5f98bc53a6a1f2cdf91e440cede3b4a5d (diff) |
added logging feedback. fixed some duplicate requests. but it's more broken now.
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r-- | src/fields/Document.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts index 4bab1299d..4b159b4eb 100644 --- a/src/fields/Document.ts +++ b/src/fields/Document.ts @@ -4,10 +4,8 @@ import { NumberField } from "./NumberField"; import { ObservableMap, computed, action, observable } from "mobx"; import { TextField } from "./TextField"; import { ListField } from "./ListField"; -import { findDOMNode } from "react-dom"; import { Server } from "../client/Server"; import { Types } from "../server/Message"; -import { ObjectID } from "bson"; export class Document extends Field { public fields: ObservableMap<string, { key: Key, field: Opt<Field> }> = new ObservableMap(); @@ -17,6 +15,8 @@ export class Document extends Field { super(id) if (save) { + var title = (this._proxies.has(KeyStore.Title.Id) ? "???" : this.Title) + "(" + this.Id + ")"; + console.log("Save " + title); Server.UpdateField(this) } } @@ -169,7 +169,9 @@ export class Document extends Field { throw new Error("Method not implemented."); } GetValue() { - throw new Error("Method not implemented."); + var title = (this._proxies.has(KeyStore.Title.Id) ? "???" : this.Title) + "(" + this.Id + ")"; + return title; + //throw new Error("Method not implemented."); } Copy(): Field { throw new Error("Method not implemented."); |