diff options
author | bobzel <zzzman@gmail.com> | 2023-05-17 23:26:29 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-05-17 23:26:29 -0400 |
commit | 52dbbf15cc337b076234c6f8519da94e8e28d94d (patch) | |
tree | efa26e12dab84eebbd22ab6ff4b4fb2cf387f24a /src/client/documents/Documents.ts | |
parent | 4836040e2d673d347aae6e15c692bfe7103a29d9 (diff) |
changed creationDate to author_date. fixed undo bug with webboxes. fixed menu problems with Open New Embedding and moved some collection menu items to buttons/
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 35747f746..fb842b14f 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -141,7 +141,7 @@ export class DocumentOptions { isSystem?: BOOLt = new BoolInfo('is this a system created/owned doc', true); type?: STRt = new StrInfo('type of document', true, Array.from(Object.keys(DocumentType))); title?: string; - creationDate?: DATEt = new DateInfo('date the document was created', true); + author_date?: DATEt = new DateInfo('date the document was created', true); _dropAction?: DROPt = new DAInfo("what should happen to this document when it's dropped somewhere else"); allowOverlayDrop?: BOOLt = new BoolInfo('can documents be dropped onto this document without using dragging title bar or holding down embed key (ctrl)?', true); childDropAction?: DROPt = new DAInfo("what should happen to the source document when it's dropped onto a child of a collection "); @@ -450,7 +450,7 @@ export namespace Docs { DocumentType.IMG, { layout: { view: ImageBox, dataField: defaultDataKey }, - options: {freeform: '',}, + options: { freeform: '' }, }, ], [ @@ -829,7 +829,7 @@ export namespace Docs { dataProps.isSystem = viewProps.isSystem; dataProps.isDataDoc = true; dataProps.author = Doc.CurrentUserEmail; - dataProps.creationDate = new DateField(); + dataProps.author_date = new DateField(); if (fieldKey) { dataProps[`${fieldKey}_modificationDate`] = new DateField(); dataProps[fieldKey] = data; @@ -996,7 +996,7 @@ export namespace Docs { I.author = Doc.CurrentUserEmail; I.rotation = 0; I.defaultDoubleClick = 'click'; - I.creationDate = new DateField(); + I.author_date = new DateField(); I['acl-Public'] = Doc.defaultAclPrivate ? SharingPermissions.None : SharingPermissions.Augment; //I['acl-Override'] = SharingPermissions.Unset; I[Initializing] = false; @@ -1035,7 +1035,7 @@ export namespace Docs { // } export function FreeformDocument(documents: Array<Doc>, options: DocumentOptions, id?: string) { - const inst = InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { _xPadding: 20, _yPadding: 20, ...options, _type_collection: CollectionViewType.Freeform }, id); + const inst = InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { _xPadding: 20, _yPadding: 20, ...options, _type_collection: CollectionViewType.Freeform }, id); documents.forEach(d => (d.embedContainer = inst)); return inst; } |