diff options
| author | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-07-30 21:24:45 -0400 |
|---|---|---|
| committer | Sam Wilkins <abdullah_ahmed@brown.edu> | 2019-07-30 21:24:45 -0400 |
| commit | a28a3b79f81e82e4b3368c0e87d3a56c694cc3b4 (patch) | |
| tree | e27d3fa55d42e8d156ba5ee8140d0771b3a04734 /src/client/views/collections/CollectionViewChromes.tsx | |
| parent | a5646ecb3eac0a6cf8cfa9a915ea56b399106ef4 (diff) | |
added undo to schema
Diffstat (limited to 'src/client/views/collections/CollectionViewChromes.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionViewChromes.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx index bf1f35a92..ecf78b8c1 100644 --- a/src/client/views/collections/CollectionViewChromes.tsx +++ b/src/client/views/collections/CollectionViewChromes.tsx @@ -377,6 +377,7 @@ export class CollectionStackingViewChrome extends React.Component<CollectionView export class CollectionSchemaViewChrome extends React.Component<CollectionViewChromeProps> { // private _textwrapAllRows: boolean = Cast(this.props.CollectionView.props.Document.textwrappedSchemaRows, listSpec("string"), []).length > 0; + @undoBatch togglePreview = () => { let dividerWidth = 4; let borderWidth = Number(COLLECTION_BORDER_WIDTH); @@ -386,6 +387,7 @@ export class CollectionSchemaViewChrome extends React.Component<CollectionViewCh this.props.CollectionView.props.Document.schemaPreviewWidth = previewWidth === 0 ? Math.min(tableWidth / 3, 200) : 0; } + @undoBatch @action toggleTextwrap = async () => { let textwrappedRows = Cast(this.props.CollectionView.props.Document.textwrappedSchemaRows, listSpec("string"), []); |
