diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-22 10:54:11 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-22 10:54:11 -0400 |
| commit | fb4ad82389f52838787c8179e6636428c3dc3185 (patch) | |
| tree | 824c85248701369054f23ff8b8348e441d52fc9f /src/client/views/nodes/DocumentLinksButton.tsx | |
| parent | 93954665f0beb8af7694b00f8d113c505d812bdf (diff) | |
made filters apply to links. automatically removes links that have a missing endpoint unless you own them.
Diffstat (limited to 'src/client/views/nodes/DocumentLinksButton.tsx')
| -rw-r--r-- | src/client/views/nodes/DocumentLinksButton.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentLinksButton.tsx b/src/client/views/nodes/DocumentLinksButton.tsx index ab6cae0ad..0cb5b94f4 100644 --- a/src/client/views/nodes/DocumentLinksButton.tsx +++ b/src/client/views/nodes/DocumentLinksButton.tsx @@ -220,7 +220,7 @@ export class DocumentLinksButton extends React.Component<DocumentLinksButtonProp @computed get linkButton() { TraceMobx(); - const links = new Set<Doc>(this.props.links); + const links = DocUtils.FilterDocs(Array.from(new Set<Doc>(this.props.links)), this.props.View.props.docFilters(), []); const menuTitle = this.props.StartLink ? "Drag or tap to start link" : "Tap to complete link"; const buttonTitle = "Tap to view links"; |
