Noded/frontend#77 - track node ID with file box record
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-02-04 15:54:48 -06:00
parent 1758340a7b
commit d8e445ba7a
4 changed files with 18 additions and 14 deletions

View File

@@ -291,7 +291,7 @@ class Page extends VersionedModel {
children.push({
id: box.pageId,
// node_id // FIXME need to track this w/ the file boxes
node_id: box.nodeId,
children: [],
type: 'file_box',
name: box.name,

View File

@@ -12,6 +12,7 @@ class FileBoxModel extends Model {
UUID: { type: String, default: uuid },
name: String,
pageId: String,
nodeId: String,
parentUUID: String,
rootUUID: String,
fileIds: [String],
@@ -56,6 +57,7 @@ class FileBoxModel extends Model {
name: this.name,
title: this.name,
pageId: this.pageId,
nodeId: this.nodeId,
parentUUID: this.parentUUID,
rootUUID: this.rootUUID,
fileIds: this.fileIds || [],