aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-09 16:58:33 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-09 16:58:33 -0400
commit6ae5bd63d5355a03dba099a149532e7c6b1fd74a (patch)
tree5971f41919806c4055aab9f6e8d3284a7098cd14 /src/client/views/collections/collectionSchema
parentb21d8cc9d1b25ccd2e0103f47ad132dd6f04612d (diff)
small changes for pull request; removed schema type reference in editableview; a couple lint changes
Diffstat (limited to 'src/client/views/collections/collectionSchema')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaCellField.tsx4
-rw-r--r--src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaCellField.tsx b/src/client/views/collections/collectionSchema/SchemaCellField.tsx
index 84e7b62bf..dab494c0e 100644
--- a/src/client/views/collections/collectionSchema/SchemaCellField.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaCellField.tsx
@@ -5,7 +5,7 @@ import { OverlayView } from '../../OverlayView';
import { DocumentIconContainer } from '../../nodes/DocumentIcon';
import React, { FormEvent } from 'react';
import { FieldView, FieldViewProps } from '../../nodes/FieldView';
-import { ObjectField } from '../../../../fields/ObjectField';
+import { FieldType, ObjectField } from '../../../../fields/ObjectField';
import { Doc } from '../../../../fields/Doc';
import { DocumentView } from '../../nodes/DocumentView';
import DOMPurify from 'dompurify';
@@ -21,7 +21,7 @@ import DOMPurify from 'dompurify';
*/
export interface SchemaCellFieldProps {
- contents: any;
+ contents: FieldType;
fieldContents?: FieldViewProps;
editing?: boolean;
oneLine?: boolean;
diff --git a/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx b/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx
index c5cdac8af..207e1deac 100644
--- a/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaColumnHeader.tsx
@@ -135,7 +135,8 @@ export class SchemaColumnHeader extends ObservableReactComponent<SchemaColumnHea
placeholder={'Add key'}
updateAlt={this.updateAlt} // alternate title to display
updateSearch={this.updateKeyDropdown}
- schemaFieldType={SchemaFieldType.Header}
+ inputString={true}
+ inputStringPlaceholder={'Add key'}
GetValue={() => {
if (SchemaColumnHeader.isDefaultField(this.fieldKey)) return '';
else if (this._altTitle) return this._altTitle;