diff options
| author | monikahedman <monika_hedman@brown.edu> | 2019-08-19 20:46:14 -0400 |
|---|---|---|
| committer | monikahedman <monika_hedman@brown.edu> | 2019-08-19 20:46:14 -0400 |
| commit | bb172696ae7824e8f1339d1bf54d389500b68b20 (patch) | |
| tree | 925233c7f7df77c890eaaebdbb65c5cd320c7af8 /src/client/views/collections/CollectionViewChromes.tsx | |
| parent | b037aa89fb564812f880994453ce002054a0ad82 (diff) | |
| parent | 9741ecc4bdfd822d8bcbe9d6505c5c2dce06cbbb (diff) | |
pulled from my updates
Diffstat (limited to 'src/client/views/collections/CollectionViewChromes.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionViewChromes.tsx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx index 6ea718330..ccea6c1ea 100644 --- a/src/client/views/collections/CollectionViewChromes.tsx +++ b/src/client/views/collections/CollectionViewChromes.tsx @@ -276,17 +276,6 @@ export class CollectionViewBaseChrome extends React.Component<CollectionViewChro })} />); } - @action.bound - clearFilter = () => { - let compiled = CompileScript("return true", { params: { doc: Doc.name }, typecheck: false }); - if (compiled.compiled) { - this.props.CollectionView.props.Document.viewSpecScript = new ScriptField(compiled); - } - - this._keyRestrictions = []; - this.addKeyRestrictions([]); - } - private dropDisposer?: DragManager.DragDropDisposer; protected createDropTarget = (ele: HTMLDivElement) => { this.dropDisposer && this.dropDisposer(); @@ -308,6 +297,17 @@ export class CollectionViewBaseChrome extends React.Component<CollectionViewChro return true; } + @action.bound + clearFilter = () => { + let compiled = CompileScript("return true", { params: { doc: Doc.name }, typecheck: false }); + if (compiled.compiled) { + this.props.CollectionView.props.Document.viewSpecScript = new ScriptField(compiled); + } + + this._keyRestrictions = []; + this.addKeyRestrictions([]); + } + render() { let collapsed = this.props.CollectionView.props.Document.chromeStatus !== "enabled"; return ( |
