Skip to content

Commit

Permalink
very rough click Entity -> filter Transcript ui
Browse files Browse the repository at this point in the history
  • Loading branch information
100ideas committed Jan 14, 2021
1 parent 6daea59 commit 22b0fe0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/client/components/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ const ALL_ENTITIES_QUERY = gql`
`

const RECENT_SENTENCES_QUERY = gql`
query RECENT_SENTENCES_QUERY($after: String!) {
query RECENT_SENTENCES_QUERY(
$after: String!,
$relatedTo: String) {
sentences (
after: $after
relatedTo: $relatedTo
) {
id
content
createdAt
}
Expand Down Expand Up @@ -156,7 +160,11 @@ class Dashboard extends React.Component {
</Query>
<Query
query={RECENT_SENTENCES_QUERY}
variables={{ after: moment().subtract(15, 'minutes').toISOString() }}
// query={ALL_ENTITIES_QUERY}
variables={{
after: moment().subtract(15, 'minutes').toISOString(),
relatedTo: activeEntity
}}
// variables={{ after: moment().subtract(5, 'minutes').toISOString() }}
// pollInterval={2000}
>
Expand Down

1 comment on commit 22b0fe0

@100ideas
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.