diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-22 14:21:41 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-22 14:21:41 -0400 |
| commit | 88b06945c8a1fcb7bc518de878a4894de70dda94 (patch) | |
| tree | e04d29ae0f68b042b4b6f2bcd9bd506b2e970d70 /src/mobile | |
| parent | 4ed30f48bd0c87f0a5ccb484d78bf4601ab6ff74 (diff) | |
major overhaul of search to avoid writing anything to filtered documents and to make the UI work properly.
Diffstat (limited to 'src/mobile')
| -rw-r--r-- | src/mobile/AudioUpload.tsx | 3 | ||||
| -rw-r--r-- | src/mobile/MobileInterface.tsx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mobile/AudioUpload.tsx b/src/mobile/AudioUpload.tsx index 8ae504f1b..738de09c6 100644 --- a/src/mobile/AudioUpload.tsx +++ b/src/mobile/AudioUpload.tsx @@ -3,7 +3,7 @@ import "./ImageUpload.scss"; import React = require('react'); import { observer } from 'mobx-react'; import { observable, action, computed } from 'mobx'; -import { Utils, emptyPath, returnFalse, emptyFunction, returnOne, returnZero, returnTrue, returnEmptyFilter } from '../Utils'; +import { Utils, emptyPath, returnFalse, emptyFunction, returnOne, returnZero, returnTrue, returnEmptyFilter, returnEmptyDoclist } from '../Utils'; import { Doc, Opt } from '../fields/Doc'; import { Cast, FieldValue } from '../fields/Types'; import { listSpec } from '../fields/Schema'; @@ -88,6 +88,7 @@ export class AudioUpload extends React.Component { rootSelected={returnTrue} removeDocument={undefined} docFilters={returnEmptyFilter} + searchFilterDocs={returnEmptyDoclist} onClick={undefined} ScreenToLocalTransform={Transform.Identity} ContentScaling={returnOne} diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index 41b997285..05a695147 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -14,7 +14,7 @@ import { action, computed, observable, reaction, trace, runInAction } from 'mobx import { observer } from 'mobx-react'; import { Doc, DocListCast } from '../fields/Doc'; import { CurrentUserUtils } from '../client/util/CurrentUserUtils'; -import { emptyFunction, emptyPath, returnFalse, returnOne, returnTrue, returnZero, returnEmptyFilter } from '../Utils'; +import { emptyFunction, emptyPath, returnFalse, returnOne, returnTrue, returnZero, returnEmptyFilter, returnEmptyDoclist } from '../Utils'; import { Docs, DocumentOptions } from '../client/documents/Documents'; import { Scripting } from '../client/util/Scripting'; import { DocumentView } from '../client/views/nodes/DocumentView'; @@ -220,6 +220,7 @@ export class MobileInterface extends React.Component { whenActiveChanged={emptyFunction} bringToFront={emptyFunction} docFilters={returnEmptyFilter} + searchFilterDocs={returnEmptyDoclist} ContainingCollectionView={undefined} ContainingCollectionDoc={undefined} /> |
