aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-07 14:58:55 -0400
committerbobzel <zzzman@gmail.com>2024-05-07 14:58:55 -0400
commita61d794b7018f0ac9723ce2d3b93547ba11f444b (patch)
treebf34073d4d40aaa6d7c0b4d01eff73d966e68fe2 /src/client/views/collections/collectionSchema/SchemaRowBox.tsx
parent2e27b90ded41146b249649b0b0c3267b46c68363 (diff)
parentb8907e69160d97d919fcd83eb86d60e3634205ca (diff)
Merge branch 'restoringEslint' into nathan-starter
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
index 059aa912e..760089ffb 100644
--- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
@@ -41,7 +41,7 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
}
@computed get schemaDoc() {
- return this.DocumentView?.().containerViewPath?.().lastElement()?.Document;
+ return this.schemaView.Document;
}
@computed get rowIndex() {
@@ -104,12 +104,13 @@ export class SchemaRowBox extends ViewBoxBaseComponent<SchemaRowBoxProps>() {
e,
returnFalse,
emptyFunction,
- undoable(e => {
- e.stopPropagation();
+ undoable(clickEv => {
+ clickEv.stopPropagation();
Doc.toggleLockedPosition(this.Document);
- }, 'Delete Row') //(??) should this be something else?
+ }, 'toggle document lock')
)
- }></IconButton>
+ }
+ />
<IconButton
tooltip="open preview"
icon={<FaExternalLinkAlt />}